关于genymotion 运行.so文件注意问题
2015-01-22 13:28
423 查看
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
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
相关文章推荐
- 关于制定so动态链接库文件需要注意的问题
- 关于PJSIP中pjsua或pjsua2编译通过(编译出so文件),运行时界面卡住的问题
- 关于 buntu14.04下的myeclipse运行jsp文件闪退问题
- 关于在程序中运行.sql后缀文件问题!
- Android Studio运行项目报错:java.lang.UnsatisfiedLinkError——.so文件问题
- 关于进入.so库文件,导致的findLibrary returned null问题
- 【设计入门】新手初学设计应该注意哪些基础问题?——关于文件管理
- 关于命令行中javac 编译成功,用 java 运行 class 文件出现 “ 找不到或无法加载主类 ” 的问题
- 关于在android开发时图像识别so文件不兼容的问题
- 关于在创建文件时需要注意的问题
- Android开发过程中遇到的关于so文件的问题
- Linux下替换运行中的程序或so文件的问题
- wince中关于source文件中需要注意的问题
- 关于Android Studio加载.so文件问题,亲测有效
- 关于32位程序在64位系统下运行中需要注意的重定向问题(有图,很清楚)
- 关于CI框架加入sphinx官方API接口文件的时候,需要注意的问题
- 关于系统读取properties配置文件的路径问题,包括打成jar包的运行文件
- 关于编译完成后的exe文件运行时的问题!
- 关于C++读入二进制文件要注意的问题(转自百度空间)
- 我的Android进阶之旅------>Android 关于arm64-v8a、armeabi-v7a、armeabi、x86下的so文件兼容问题