我们在安装一些应用到Genymotion模拟器会提示:adb: failed to install xx.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
原因是Genymotion采用的编译方式是x86,默认不支持ARM架构编译的应用,所以无法安装,解决方案如下:
首先下载Genymotion-ARM-Translation.zip,注意不同的安卓版本对应不同的ARM-Translation,可以到官网下载,也可以通过百度网盘下载,百度云盘中的支持的安卓版本为8.0
1.windows系统
下载后可以手动拖拽压缩包到模拟器中,根据模拟器提示点击OK按钮即可进行安装,成功后重启模拟器即可。如果操作失败也可以使用Mac、Linux系统操作方法
2.Mac、Linux系统
下载后先将应用push到手机的sdcard/Download文件夹下,进入压缩包下载后的文件夹,使用命令:adb push ARM_Translation_Oreo_8.0.zip /sdcard/Download,此时会提示上传进度:ARM_Translation_Oreo_8.0.zip: 1...d. 16.5 MB/s (9390250 bytes in 0.543s)
完成后进入到手机push文件的目录下:adb shell ->cd sdcard/Download
手动运行flash-archive.sh脚本:sh /system/bin/flash-archive.sh /sdcard/Download/ARM_Translation_Oreo_8.0.zip ,提示信息如下,
Archive: /sdcard/Download/ARM_Translation_Oreo_8.0.zipcreating: META-INF/com/creating: META-INF/com/google/creating: META-INF/com/google/android/inflating: META-INF/com/google/android/update-binaryinflating: META-INF/com/google/android/updater-scriptcreating: system/creating: system/lib/creating: system/lib/arm/inflating: system/lib/arm/check.xmlinflating: system/lib/arm/cpuinfoinflating: system/lib/arm/cpuinfo.neoninflating: system/lib/arm/libandroid.soinflating: system/lib/arm/libandroidfw.soinflating: system/lib/arm/libandroid_runtime.soinflating: system/lib/arm/libaudioutils.soinflating: system/lib/arm/libbinder.soinflating: system/lib/arm/libc.soinflating: system/lib/arm/libcamera_client.soinflating: system/lib/arm/libcorkscrew.soinflating: system/lib/arm/libcrypto.soinflating: system/lib/arm/libcutils.soinflating: system/lib/arm/libc_orig.soinflating: system/lib/arm/libdl.soinflating: system/lib/arm/libdrmframework.soinflating: system/lib/arm/libdvm.soinflating: system/lib/arm/libEGL.soinflating: system/lib/arm/libemoji.soinflating: system/lib/arm/libETC1.soinflating: system/lib/arm/libexpat.soinflating: system/lib/arm/libfilterfw.soinflating: system/lib/arm/libfilterpack_imageproc.soinflating: system/lib/arm/libgabi++.soinflating: system/lib/arm/libgccdemangle.soinflating: system/lib/arm/libGLESv1_CM.soinflating: system/lib/arm/libGLESv2.soinflating: system/lib/arm/libgui.soinflating: system/lib/arm/libhardware.soinflating: system/lib/arm/libhardware_legacy.soinflating: system/lib/arm/libharfbuzz.soinflating: system/lib/arm/libhwui.soinflating: system/lib/arm/libicui18n.soinflating: system/lib/arm/libicuuc.soinflating: system/lib/arm/libjnigraphics.soinflating: system/lib/arm/libjpeg.soinflating: system/lib/arm/liblog.soinflating: system/lib/arm/libm.soinflating: system/lib/arm/libmedia.soinflating: system/lib/arm/libmedia_native.soinflating: system/lib/arm/libm_orig.soinflating: system/lib/arm/libnativehelper.soinflating: system/lib/arm/libnetutils.soinflating: system/lib/arm/libnfc_ndef.soinflating: system/lib/arm/libOpenMAXAL.soinflating: system/lib/arm/libOpenSLES.soinflating: system/lib/arm/libpatts_engine_jni_api.soinflating: system/lib/arm/libpixelflinger.soinflating: system/lib/arm/libskia.soinflating: system/lib/arm/libsonivox.soinflating: system/lib/arm/libspeexresampler.soinflating: system/lib/arm/libspeexwrapper.soinflating: system/lib/arm/libsqlite.soinflating: system/lib/arm/libssl.soinflating: system/lib/arm/libstagefright.soinflating: system/lib/arm/libstagefright_foundation.soinflating: system/lib/arm/libstdc++.soinflating: system/lib/arm/libstlport.soinflating: system/lib/arm/libsurfaceflinger.soinflating: system/lib/arm/libsync.soinflating: system/lib/arm/libui.soinflating: system/lib/arm/libusbhost.soinflating: system/lib/arm/libutils.soinflating: system/lib/arm/libvorbisidec.soinflating: system/lib/arm/libwpa_client.soinflating: system/lib/arm/libz.soinflating: system/lib/arm/linkerinflating: system/lib/libdvm_houdini.soinflating: system/lib/libhoudini.so [flash_archive] Remount /system/ in rw [flash_archive] Start file install [ERROR][flash_archive] META-INF/com/google/android/update-binary is an ARM binary, using system updater [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libandroid.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libandroidfw.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libandroid_runtime.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libaudioutils.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libbinder.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libc.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libcamera_client.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libcorkscrew.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libcrypto.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libcutils.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libc_orig.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libdl.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libdrmframework.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libdvm.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libEGL.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libemoji.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libETC1.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libexpat.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libfilterfw.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libfilterpack_imageproc.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libgabi++.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libgccdemangle.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libGLESv1_CM.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libGLESv2.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libgui.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libhardware.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libhardware_legacy.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libharfbuzz.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libhwui.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libicui18n.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libicuuc.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libjnigraphics.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libjpeg.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/liblog.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libm.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libmedia.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libmedia_native.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libm_orig.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libnativehelper.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libnetutils.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libnfc_ndef.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libOpenMAXAL.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libOpenSLES.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libpatts_engine_jni_api.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libpixelflinger.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libskia.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libsonivox.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libspeexresampler.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libspeexwrapper.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libsqlite.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libssl.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libstagefright.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libstagefright_foundation.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libstdc++.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libstlport.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libsurfaceflinger.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libsync.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libui.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libusbhost.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libutils.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libvorbisidec.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libwpa_client.so lib (x86 version exists) [sanitize_zipfile_and_execute_update_binary] Skipping system/lib/arm/libz.so lib (x86 version exists)adding: META-INF/ (stored 0%)adding: META-INF/com/ (stored 0%)adding: META-INF/com/google/ (stored 0%)adding: META-INF/com/google/android/ (stored 0%)adding: META-INF/com/google/android/update-binary (deflated 35%)adding: META-INF/com/google/android/updater-script (deflated 35%)adding: system/ (stored 0%)adding: system/lib/ (stored 0%)adding: system/lib/arm/ (stored 0%)adding: system/lib/arm/check.xml (deflated 41%)adding: system/lib/arm/cpuinfo (deflated 32%)adding: system/lib/arm/cpuinfo.neon (deflated 32%)adding: system/lib/arm/linker (deflated 49%)adding: system/lib/libdvm_houdini.so (deflated 69%)adding: system/lib/libhoudini.so (deflated 69%) chmod: updater: No such file or directory [flash_archive] Remount /system/ in ro [flash_archive] Delete tmp directory [flash_archive] Done successfully ! {Result:OK};
{Result:OK}表示安装成功,完成后需要重启模拟器,重启后再次安装ARM架构编译的应用则可以正常安装