The APK failed to install.
Error: INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113
完整的提示错误如上
我是M1 然后用的Android Emulator
CPU选的是ARM64-v8a 运行的时候安装不上
22:22:52.704 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:fuse:s0 tclass=file permissive=0
22:22:52.725 System server has no access to read file context u:object_r:fuse:s0 (from path /sdcard/android_base.apk, context u:r:system_server:s0)
22:22:52.750 Error: Unable to open file: /sdcard/android_base.apk
22:22:52.773 Consider using a file under /data/local/tmp/
22:22:52.795 Error: Can't open file: /sdcard/android_base.apk
22:22:52.820 Exception occurred while executing 'install':
22:22:52.844 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_base.apk
22:22:52.869 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:572)
22:22:52.894 at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1337)
22:22:52.914 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1303)
22:22:52.939 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
22:22:52.964 at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
22:22:52.989 at android.os.ShellCommand.exec(ShellCommand.java:38)
22:22:53.014 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24612)
22:22:53.039 at android.os.Binder.shellCommand(Binder.java:950)
22:22:53.064 at android.os.Binder.onTransact(Binder.java:834)
22:22:53.089 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)
22:22:53.114 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8506)
22:22:53.139 at android.os.Binder.execTransactInternal(Binder.java:1184)
22:22:53.165 at android.os.Binder.execTransact(Binder.java:1143)
22:22:53.190 安装HBuilder基座App失败,请使用手机助手手动安装/Applications/HBuilderX.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk到手机上,并重新运行真机调试。
22:22:53.212 已停止运行...
4 个回复
1***@163.com
666
3***@qq.com
请问下,楼主这个问题解决了吗,我也遇到了同样的问题
4***@qq.com
我也是一样的问题。 一样的M1
4***@qq.com
这个问题我已经解决了。 我就做一次好心人。希望能帮助大家。 首先问题原因就是官方基座不支持arm64的CPU架构。 我们如果想运行就必须使用自定义基座。并在manifast的APP常用和其他中把arm64-v8a勾选上就搞定了。 以后调试的时候选择自定义基座。 搞定~
2021-12-13 11:57
m***@163.com
回复 4***@qq.com: 谢谢,自定义基座解决问题了
2022-01-04 14:44
kil
回复 4***@qq.com: 感谢大哥,arm64-v8a勾选上可以了
2022-02-10 16:45
v***@vip.qq.com
回复 4***@qq.com: 感谢
2022-05-23 22:11
jetbn
我自定义基座也不行
1***@qq.com
兄弟 你那好了吗,我也遇见和你同样的问题了。但是我出现了新的报错!
'cmd package install-create -r -t --user current --full -S 17890210' returns error 'Unknown failure: Exception occurred while executing 'install-create': android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34) at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:595) at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:3335) at com.android.server.pm.PackageManagerShellCommand.runInstallCreate(PackageManagerShellCommand.java:1539) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:214) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:5943) at android.os.Binder.shellCommand(Binder.java:1049) at android.os.Binder.onTransact(Binder.java:877) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4303) at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:5927) at android.os.Binder.execTransactInternal(Binder.java:1285) at android.os.Binder.execTransact(Binder.java:1244) Caused by: java.io.IOException: Requested internal only, but not enough space at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:241) at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:152) at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:167) at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:803) at
com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:592) ... 12 more'
2022-06-07 00:08