Genymotion 安裝apk過程中遇到的問題總結


question1: An error occured while deploying the file.
This probably means that the app contains ARM native code and your Genymotion device cannot run ARM instructions. You should either build your native code to x86 or install an ARM translation tool in your device.

出現此問題是因為:

Genymotion是一款基於x86架構的Android模擬器,而大部分應用是arm架構,因此兩者不兼容。

對於x86的真機,X86處理器已經能夠基本兼容ARM了指令。對於Genymotion模擬器,向Genymotion模擬器安裝Genymotion-ARM-Translation.zip。

解決方案:首先需要下載:Genymotion-ARM-Translation.zip

下載地址:

鏈接:https://pan.baidu.com/s/1TOzZtB1D3LYK7tDu64U-rQ
提取碼:gg1z 

下載完成后,通過命令進行安裝。

 

在安裝前要確定genymotion的adb版本和sdk版本是否一致。可以在genymotion中settings----->adb------>use custom Android SDK tools中設置自己的sdk路徑。

 

 打開cmd,然后進入自己的sdk路徑中

1.cd D:\androidstudio\android-sdk-windows-new\platform-tools      //注釋:你自己的sdk路徑

2.adb push E:\Genymotion-ARM-Translation.zip /sdcard/Download/

3.adb shell flash-archive.sh /sdcard/download/Genymotion-ARM-Translation.zip

在此過程中出現此問題:

question2: updater: No such file or directory
[ERROR][execute_update_binary] execution of update-binary ended with errors
[ERROR]{Result:KO};

 

是因為你的模擬器系統版本與Genymotion-ARM-Translation.zip不對應,

解決方案:需找個對應的Genymotion-ARM-Translation.zip

安裝成功后重啟模擬器。

question3:仍然安裝不了(不能直接拖入模擬器)

解決方案:可以將genymotion模擬器和gentmotion.exe全部退出,然后運行genymotion.exe取消管理員運行即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM