網(wǎng)上介紹共計三種模擬器比較常用,分別是bluestacks、andy和Genymotion,前者支持ARM架構(gòu),中者支持遠(yuǎn)程控制,后者啟動速度快,各有優(yōu)缺點。當(dāng)然我最熟悉的還是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架構(gòu)的,所以從.so文件入手找問題,項目中導(dǎo)入了jpush的.so配置文件,jpush官網(wǎng)上的解釋通常都是
http://docs.jpush.cn/pages/viewpage.action?pageId=7864765,新建x86、mips 、armeabi-v7a幾個目錄,然后把libjpush.so也復(fù)制一份過去。嘗試之后發(fā)現(xiàn)不起作用。
三、解決辦法:1、網(wǎng)上找了很久發(fā)現(xiàn)如下辦法,下載一個
ARM Translation Installer的壓縮包,安裝到Genymotion上,重啟下,重新運行程序,ok,問題順利解決。簡要摘抄步驟如下:
- Download the following ZIPs:
- 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.
詳情轉(zhuǎn)載地址:http://forum.xda-developers.com/showthread.php?t=2528952
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。