网上介绍共计三种模拟器比较常用,分别是bluestacks、andy和Genymotion,前者支持ARM架构,中者支持远程控制,后者启动速度快,各有优缺点。当然我最熟悉的还是Genymotion,最近使用Genymotion遇到一点问题,比较头疼,绞尽脑汁才找到解决办法。记录下来,分享下,以便以后不再困扰。
一、问题描述:
1、
在Genymotion上启动项目时,程序抛出异常,报错日志为:11-10 09:18:44.577:
E/com.btten.base.CrashReportHandler(1298): Caused by:
java.lang.UnsatisfiedLinkError: Cannot
load library: load_library[1093]: Library '/system/lib/libhoudini.so'
not found
二、问题分析:
1、鉴于Genymotion是只支持x86架构的,所以从.so文件入手找问题,项目中导入了jpush的.so配置文件,jpush官网上的解释通常都是http://docs.jpush.cn/pages/viewpage.action?pageId=7864765,新建x86、mips
、armeabi-v7a几个目录,然后把libjpush.so也复制一份过去。尝试之后发现不起作用。
三、解决办法:
1、网上找了很久发现如下办法,下载一个ARM
Translation Installer的压缩包,安装到Genymotion上,重启下,重新运行程序,ok,问题顺利解决。简要摘抄步骤如下:
-
Download the following ZIPs:
-
Google Apps for Android 4.4(Mirror)(Download
from CM11 Links)(4.4 GApps might be buggy) -
ARM Translation Installer v1.1 Hosted
by FILETRIP(Mirrors) – If
you have issues flashing ARM Trnaslation, Try re-downloading from a mirror -
Download the correct GApps for your Android version:
If you have issues flashing GApps, Try re-downloading from a mirror
Next Open your Genymotion VM and go to the Homescreen
Now Drag&Drop the Genymotion-ARM-Translation.zip onto the Genymotion VM window.
It should say "File transfer in progress", once it asks you to flash it click 'OK'
Now Reboot your VM using ADB or an app like ROM Toolbox. If nescessary
you can simply close the VM window, but I don't recommend it.
详情转载地址:http://forum.xda-developers.com/showthread.php?t=2528952
转载请注明:学时网 » Android模拟器Genymotion加载ARM架构so文件