7***@qq.com
安卓HB基座在模拟器上运行正常。但是自定义基座运行在模拟器上报错:
正在安装手机端自定义基座...
23:22:08.312 /Users/abcd/Documents/HBuilderProjects/test/unpackage/debug/android_debug.apk: 1 file pushed. 288.6 MB/s (12443650 bytes in 0.041s)
23:22:08.334 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
23:22:08.358 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_debug.apk, context u:r:system_server:s0)
23:22:08.381 Error: Unable to open file: /sdcard/android_debug.apk
23:22:08.404 Consider using a file under /data/local/tmp/
23:22:08.427 Error: Can't open file: /sdcard/android_debug.apk
23:22:08.450 Exception occurred while executing:
23:22:08.474 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
23:22:08.498 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
23:22:08.522 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
23:22:08.546 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
23:22:08.570 at android.os.ShellCommand.exec(ShellCommand.java:104)
23:22:08.592 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21742)
23:22:08.643 at android.os.Binder.shellCommand(Binder.java:881)
23:22:08.644 at android.os.Binder.onTransact(Binder.java:765)
23:22:08.657 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
23:22:08.682 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4016)
23:22:08.706 at android.os.Binder.execTransactInternal(Binder.java:1021)
23:22:08.730 at android.os.Binder.execTransact(Binder.java:994)
23:22:08.754 Performing Streamed Install
23:22:08.776 注:有些手机需要点亮手机屏幕并点击【安装】按钮才能安装成功
23:22:08.797 /Users/abcd/Documents/HBuilderProjects/test/unpackage/debug/android_debug.apk: 1 file pushed. 474.2 MB/s (12443650 bytes in 0.025s)
23:22:08.819 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
23:22:08.843 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_debug.apk, context u:r:system_server:s0)
23:22:08.867 Error: Unable to open file: /sdcard/android_debug.apk
23:22:08.891 Consider using a file under /data/local/tmp/
23:22:08.915 Error: Can't open file: /sdcard/android_debug.apk
23:22:08.940 Exception occurred while executing:
23:22:08.965 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
23:22:08.985 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
23:22:09.009 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
23:22:09.029 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
23:22:09.052 at android.os.ShellCommand.exec(ShellCommand.java:104)
23:22:09.075 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21742)
23:22:09.098 at android.os.Binder.shellCommand(Binder.java:881)
23:22:09.118 at android.os.Binder.onTransact(Binder.java:765)
23:22:09.142 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
23:22:09.164 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4016)
23:22:09.188 at android.os.Binder.execTransactInternal(Binder.java:1021)
23:22:09.213 at android.os.Binder.execTransact(Binder.java:994)
23:22:09.238 Performing Streamed Install
23:22:09.261 /Users/abcd/Documents/HBuilderProjects/test/unpackage/debug/android_debug.apk: 1 file pushed. 377.1 MB/s (12443650 bytes in 0.031s)
23:22:09.285 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
23:22:09.310 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_debug.apk, context u:r:system_server:s0)
23:22:09.334 Error: Unable to open file: /sdcard/android_debug.apk
23:22:09.358 Consider using a file under /data/local/tmp/
23:22:09.382 Error: Can't open file: /sdcard/android_debug.apk
23:22:09.403 Exception occurred while executing:
23:22:09.425 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
23:22:09.450 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:461)
23:22:09.475 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1060)
23:22:09.499 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:169)
23:22:09.522 at android.os.ShellCommand.exec(ShellCommand.java:104)
23:22:09.547 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21742)
23:22:09.570 at android.os.Binder.shellCommand(Binder.java:881)
23:22:09.592 at android.os.Binder.onTransact(Binder.java:765)
23:22:09.613 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4860)
23:22:09.638 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4016)
23:22:09.662 at android.os.Binder.execTransactInternal(Binder.java:1021)
23:22:09.685 at android.os.Binder.execTransact(Binder.java:994)
23:22:09.708 Performing Streamed Install
23:22:09.733 安装自定义基座App失败,请使用手机助手手动安装/Users/abcd/Documents/HBuilderProjects/test/unpackage/debug/android_debug.apk到手机上,并重新运行真机调试。
23:22:09.754 已停止运行...
将APK直接安装在模拟器上也报销:
The APK failed to install.
Error: Could not parse error string
2020-03-12 00:37
82 个评论
要回复文章请先登录或注册
1***@qq.com
石头2001
1***@qq.com
7***@qq.com
1***@qq.com
y***@outlook.com
1***@qq.com
1***@qq.com
DCloud_App_Array
2***@qq.com