关于genymotion 运行.so文件注意问题

1、Genymotion模拟器访问网络和原生的Android模拟器是不一样的,因为Genymotion模拟器是运行在VirtualBox虚拟机上的x86架构的Android版本(这也是它的开机速度远胜于原生模拟器的原因吧),

2、

网上介绍共计三种模拟器比较常用,分别是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:
    • 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
      • Google Apps for Android 4.4(Mirror)(Download from CM11 Links)(4.4 GApps might be buggy)
      • Google Apps for Android 4.3(Mirrors)
      • Google Apps for Android 4.2
      • Google Apps for Android 4.1
  • 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://www.eoeandroid.com/thread-552875-1-1.html  

你可能感兴趣的:(文章转载,日常积累)