GENYMOTION问题之an error occurred while deploying a file install_failed_no_machine_abis



GENYMOTION问题之an error occurred while deploying a file install_failed_no_machine_abis。

看一下Android的东西,以前在用Eclipse绑ADT自带的那个Android模拟器的时候,简直慢得蛋疼,但是业余做做Android开发,感觉还过得去。

 

后面发现一位Android开发的正在用着一种超快速的模拟器,好奇的问他怎么你的模拟器不会慢的?

回答就是——另外的模拟器——GenyMotion。

 

直接在官网注册,下载安装一步到位。

 

接下来尝试了android最新的Lollipop系统,棒棒糖(读起来像萝莉棒)。

但是自己直接拖曳一个apk到模拟器里面的时候,会报了an error occurred while deploying a file install_failed_no_machine_abis这样的错误。问题后面在

http://stackoverflow.com/questions/24572052/install-failed-no-matching-abis-when-install-apk这里找到原因

 

INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn’t have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.

 

INSTALL_FAILED_NO_MATCHING_ABIS 是当你安装一个具有本地库的app的时候,你的cpu架构并没有,例如如果你编译一个armv7的app的时候,把它装在Inter架构的模拟器上,他是不会工作的。

 

其实真正的原因就如一个专门为arm架构的cpu开发的app,你放到一款inter架构的手机上,安装是有错的。

 


其实这个通过Eclipse就可以知道,:

模拟器是有不同的架构的模拟器选择的。Genymotion也一样,本身直接拖个Arm下的app过去他是不支持的。

 

所以有了兼容的一个东西叫——Genymotion-ARM-Translation:

资源免费下载:http://download.csdn.net/detail/iaiti/8224603

 

如果发现程序还是不停闪退建议将adt设置为本地的sdk,然后新建其他机型的模拟器。

 

然后写一个简单的Helloworld项目。只要在运行的时候选择即可:

 

萝莉棒下的HelloWorld:

 

 

关于play.exe程序关闭的问题:GenyMotion不稳定造成,重启多次即可。

总结一下GenyMotion的,一个字——爽!