Genymotion模拟器:Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
来源:互联网 发布:手机号码跟踪软件 编辑:程序博客网 时间:2024/05/18 20:35
在使用Genymotion模拟器运行项目的时候突然出现了下面的一幕:
这个问题困扰了我很久,用真机测试运行就没有问题,使用模拟器就出现,但是运行其他项目不会有任何问题,
这个问题出现在模拟器上的概率更大些,原因是某些应用使用了原生库(NDK,Native Lib),这些库的编译目标通常是arm架构的cpu,在x86上运行就会报这样的错误。
然后百度了一下,基本上都是大同小异,很多人都说一个简单的解决办法就是换一个arm架构的模拟器或者添加一个压缩文件,我试过了,不知道为什么没效果!(国内很多兄弟们喜欢复制、粘贴,但是至少要能解决问题好不好,自己没有试过就发表出来,很容易误导我们这些新手的好不好,同意的小伙伴请举手!......)
后来找到了解决的办法,就是在Module里面的gradle文件里面的Android闭包里面添加如下代码,然后同步一下就OK了,如果帮助到了你,请支持一下哦!
android{ splits { abi { enable true reset() include 'x86', 'armeabi-v7a','x86_64' universalApk true } }
当然,这个解决方法不一定对你的项目会有效果,但是哥们自己试过了,只是我的问题是这样解决的,给小伙伴们参考参考!
阅读全文
1 0
- Genymotion模拟器:Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
- 使用Studio在genymotion模拟器上运行项目时提示错误:installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBL
- installation failed with message
- 安装APK运行Genymation时报错:Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
- Installation failed with message INSTALL_FAILED_OLDER_SDK.
- Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS.
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message:INSTALL_CANCELED_BY_USER
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS
- Installation failed with message INSTALL_FAILED_NO_MATCHING_ABIS.
- Installation failed with message INSTALL_CANCELED_BY_USER.
- Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER.
- 中位数
- JAVA基础类库——Java7新增的Objects类
- Static Const
- c#知识收藏
- canvas操作图片像素
- Genymotion模拟器:Installation failed with message INSTALL_FAILED_CPU_ABI_INCOMPATIBLE.
- 我的 mongodb 入门笔记
- 2017.6.4 入门组 NO.4——猜数
- [bzoj3594][Scoi2014]方伯伯的玉米田 树状数组优化dp
- LINUX运行过程中报aborted的问题
- 2017上海金马五校程序设计竞赛 K:Treasure Map
- TCP/IP协议简析
- Hadoop MapReduce之学生平均成绩
- 烂苹果定律、彼得定律 一些简单却容易忽视的定律