我创建了一个小应用程序。 当我尝试在 genymotion 模拟器上运行该应用程序时,它会弹出一个“不幸的是我的应用程序已停止”
应用程序输出:
Forwarding debugger port 8834
Detecting existing process
[MultiDex] VM with version 1.6.0 does not have multidex support
[MultiDex] install
[MultiDex] MultiDexExtractor.load(/data/app/purposecolor.purposecolor-2.apk, false)
[MultiDex] Detected that extraction must be performed.
[MultiDex] load found 0 secondary dex files
[MultiDex] install done
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_23 or Xamarin.Android.Platform!
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4563)
[AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:4190)
[AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4132)
[AndroidRuntime] at android.app.ActivityThread.access$1300(ActivityThread.java:130)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:99)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:137)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:4745)
[AndroidRuntime] at java.lang.reflect.Method.invokeNative(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:511)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
[AndroidRuntime] at dalvik.system.NativeStart.main(Native Method)
[AndroidRuntime] Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_23 or Xamarin.Android.Platform!
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4560)
[AndroidRuntime] ... 12 more
[AndroidRuntime] Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
[AndroidRuntime] at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:210)
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
[AndroidRuntime] ... 13 more
[Process] Sending signal. PID: 1845 SIG: 9
使用 Android 版本编译:使用最新平台(API 级别 23(Xamarin.Android v6.0 支持))
最低 Android 目标:API 级别 16(Xamarin.Android v4.1 支持)
目标 Android 版本:API 级别 16(Xamarin.Android v4.1 支持)
最佳答案
在项目选项中禁用 Multi-Dex 解决了我的问题。
Project --> Options --> Android Build --> General --> 取消选中 < strong="">启用 Multi-Dex
感谢@AlexLipov 给我提示
[MultiDex] load found 0 secondary dex files
关于android - 版本为 1.6.0 的 VM 不支持 multidex : Unable to find application Mono. Android.Platform.ApiLevel_23 或 Xamarin.Android.Platform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37269874/
最近因为项目需要,需要将Android手机系统自带的某个系统软件反编译并更改里面某个资源,并重新打包,签名生成新的自定义的apk,下面我来介绍一下我的实现过程。APK修改,分为以下几步:反编译解包,修改,重打包,修改签名等步骤。安卓apk修改准备工作1.系统配置好JavaJDK环境变量2.需要root权限的手机(针对系统自带apk,其他软件免root)3.Auto-Sign签名工具4.apktool工具安卓apk修改开始反编译本文拿Android系统里面的Settings.apk做demo,具体如何将apk获取出来在此就不过多介绍了,直接进入主题:按键win+R输入cmd,打开命令窗口,并将路
我在使用rbenv管理的VM(VirtualBox)中安装了MailCatcher。但是,mailcatcher不起作用,在下面显示错误消息:`require':cannotloadsuchfile--i18n/core_ext/string/interpolate(LoadError)i18n好像没装,我装了[vagrant@localhost~]$gemlisti18n***LOCALGEMS***i18n(0.7.0.beta1)我同样安装在AWSEC2中,它可以工作。我的VM中发生了什么?---详情---操作系统:CentOS6.5Ruby:2.1.1和rbenv0.4.0完整
我收到错误:unsupportedcipheralgorithm(AES-256-GCM)(RuntimeError)但我似乎具备所有要求:ruby版本:$ruby--versionruby2.1.2p95OpenSSL会列出gcm:$opensslenc-help2>&1|grepgcm-aes-128-ecb-aes-128-gcm-aes-128-ofb-aes-192-ecb-aes-192-gcm-aes-192-ofb-aes-256-ecb-aes-256-gcm-aes-256-ofbRuby解释器:$irb2.1.2:001>require'openssl';puts
我遇到了一个很奇怪的问题。这是与routes.rb相关的部分:resources:playersmatch'/players/:userid',:to=>'Players#show'当您访问localhost:3000/players/1234时出现此错误:'Players'isnotasupportedcontrollername.Thiscanleadtopotentialroutingproblems.Controller中的相关代码:defshowbeginifPlayer.find_by(:uid=>:userid)then@playerattributes=Player.f
即使ruby不支持多重继承,它也是一种纯面向对象的编程语言吗?如果是如何?请解释。我知道通过允许在一个类中包含多个模块,在一定程度上弥补了多重继承的不足。此外,我不确定纯OOP语言的所有先决条件。来自thisarticle,他们提到aRubyclasscanhaveonlyonemethodwithagivenname(ifyoudefineamethodwiththesamenametwice,thelattermethoddefinitionprevails..这是否意味着Ruby不支持重载方法。如果是这样,它仍然可以作为纯OOP语言吗?如果是这样,请同时解释这背后的原因。谢谢
我试图实现一组我放在纸上的模型,但遇到了一个问题,我认为最好的解决方法是使用多表继承设置。然而,在谷歌搜索后我发现ActiveRecord不支持MTI......尽管有很多文章展示了如何做到这一点。这让我想知道如果没有实现我是否正确设置了我的模型。所以我的问题是为什么ActiveRecord没有内置对MTI的支持?如果您对我的模型设置“将会”是什么样子感到好奇,我会把它留在下面。classPlayer其中玩家可以是CollegePlayer和ProPlayer之一或两者。或者在另一个例子中......classPerson“人”可以是用户、前玩家和/或教练。
>>a=5=>5>>b="hello,world!"=>"hello,world!">>b.dup=>"hello,world!">>a.dupTypeError:can'tdupFixnumfrom(irb):4:in`dup'from(irb):4我知道每次您将整数分配给新变量时Ruby都会复制一份,但为什么Numeric#dup会引发错误?这不会破坏抽象,因为所有对象都应该正确响应.dup吗?据我所知,重写dup方法将解决问题:>>classNumeric>>defdup()>>self>>end>>end这是否有我没有看到的缺点?为什么不将其内置到Ruby中?
运行有问题或需要源码请点赞关注收藏后评论区留言一、利用ContentResolver读写联系人在实际开发中,普通App很少会开放数据接口给其他应用访问。内容组件能够派上用场的情况往往是App想要访问系统应用的通讯数据,比如查看联系人,短信,通话记录等等,以及对这些通讯数据及逆行增删改查。首先要给AndroidMaifest.xml中添加响应的权限配置 下面是往手机通讯录添加联系人信息的例子效果如下分成三个步骤先查出联系人的基本信息,然后查询联系人号码,再查询联系人邮箱代码 ContactAddActivity类packagecom.example.chapter07;importandroid
文章目录问题B:芝华士威士忌和他的小猫咪们代码&注释问题C:愿我的弹雨能熄灭你们的痛苦代码注释问题D:猜糖果游戏代码注释问题E:有趣的次方代码注释问题F:这是一个简单题代码&注释问题G:打印矩阵代码注释问题H:scz的简单考验代码注释问题I:完美区间代码&注释问题J:是狂热的小迷妹一枚吖~代码&注释2022年10月23日周赛ZZULIOJ问题B:芝华士威士忌和他的小猫咪们时间限制:1Sec内存限制:128MB题目描述芝华士威士忌很喜欢带着他的猫咪们一块跑着玩。但是小猫咪们很懒,只有在离他y米以内才愿意和他一块跑。这天他在坐标为x的位置,他想和他的猫咪们一块跑着玩。有n个小猫咪,第i个小猫咪在坐
1.前言 在10.0的系统rom定制化开发中,在系统中有多个launcher的时候,会在开机进入launcher的时候弹窗launcher列表,让用户选择进入哪个launcher,这样显得特别的不方便所以产品开发中,要求用RoleManager的相关api来设置默认Launcher,但是在设置完默认Launcher以后,在安装一款Launcher的时候,默认Launcher就会失效,在系统设置的默认应用中Launcher选项就为空,点击home键的时候会弹出默认Launcher列表,让选择进入哪个默认Launcher.所以需要从安装Launcher的流程来分析相关的设置。来解决问题设置默认La