ubuntu20.04安装genymotion3.5.1

下载和安装genymotion

https://www.genymotion.com/download/

wget https://dl.genymotion.com/releases/genymotion-3.5.1/genymotion-3.5.1-linux_x64.bin
chmod +x genymotion-3.5.1-linux_x64.bin
sudo ./genymotion-3.5.1-linux_x64.bin

默认位置为:/opt/genymobile/genymotion

安装vritual box

genymotion模拟器需要virbox支持,需要安装一下

sudo apt install virtualbox virtualbox-ext-pack

运行出错

运行程序,出现以下错误:
/opt/genymobile/genymotion/genymotion: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15’ not found (required by /opt/genymobile/genymotion/genymotion)
原因是ubuntu20.04默认qt5版本是qt5.12,而genymotion3.5.1需要qt5.15。

安装qt5.15

https://download.qt.io/official_releases/online_installers/
下载后,启动会进入安装界面,需要注册一个账号,安装好了的话,会在/opt/Qt目录下看到5.15.2目录,这个下面就包含了libQt5Core。

启动脚本

因为默认会链接qt5.12,所以需要写一个启动脚本,让程序优先链接qt5.15

export LD_LIBRARY_PATH=/opt/Qt/5.15.2/gcc_64/lib:$LD_LIBRARY_PATH && /opt/genymobile/genymotion/genymotion

若无意外,就能进入genymotion了
ubuntu20.04安装genymotion3.5.1_第1张图片

安装模拟器

在界面上添加一个模拟器,选择配置,安装就可以,建议安装android9.0及以下版本,因为genymotion是x86架构,而国内很多应用都不支持,一般都只支持arm, 这种app要安装在模拟器中就需要一个转换工具,genymotion提供了这种工具Genymotion_ARM_Translation, 但是最高只兼容到android9.0。

模拟器安装好了,使用adb安装应用:

/opt/genymobile/genymotion/tools/adb install xxx.apk

提示出现如下错误:

adb: failed to install xxx.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]

这个就是apk不支持x86架构导致的。
下载模拟器对应版本的Genymotion_ARM_Translation,然后拖到模拟器窗口,按提示确认安装后,重启一下,接下来就可以正常安装了。

你可能感兴趣的:(genymotion)