见描述
- 发布:2022-05-26 19:01
- 更新:2022-05-26 21:27
- 阅读:403
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.3.1
HBuilderX类型: 正式
HBuilderX版本号: 3.4.7
手机系统: Android
手机系统版本号: Android 10
手机厂商: vivo
手机机型: vivo X30
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
正常安装、调试
正常安装、调试
实际结果:
无法正常安装调试
无法正常安装调试
bug描述:
连接vivo X30,进行真机调试的时候,一直安装失败。
使用右键android_debug文件的方式来安装后,运行调试,又会提示基座有更新,把已安装的基座给删了,但是新的基座又装不上去,太TM坑爹了。
以下是控制台输出的内容:
正在建立手机连接...
18:57:08.037 正在安装手机端HBuilder调试基座...
18:57:09.506 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk: 1 file pushed. 35.6 MB/s (55655425 bytes in 1.492s)
18:57:09.705 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
18:57:09.727 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_base.apk, context u:r:system_server:s0)
18:57:09.749 Error: Unable to open file: /sdcard/android_base.apk
18:57:09.770 Consider using a file under /data/local/tmp/
18:57:09.793 Error: Can't open file: /sdcard/android_base.apk
18:57:09.820 Exception occurred while executing:
18:57:09.839 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_base.apk
18:57:09.860 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
18:57:09.885 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
18:57:09.909 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
18:57:09.929 at android.os.ShellCommand.exec(ShellCommand.java:104)
18:57:09.954 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
18:57:09.977 at android.os.Binder.shellCommand(Binder.java:881)
18:57:10.001 at android.os.Binder.onTransact(Binder.java:765)
18:57:10.022 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
18:57:10.043 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
18:57:10.066 at android.os.Binder.execTransactInternal(Binder.java:1021)
18:57:10.089 at android.os.Binder.execTransact(Binder.java:994)
18:57:10.110 注:有些手机需要点亮手机屏幕并点击【安装】按钮才能安装成功
18:57:11.339 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk: 1 file pushed. 36.2 MB/s (55655425 bytes in 1.466s)
18:57:11.489 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
18:57:11.511 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_base.apk, context u:r:system_server:s0)
18:57:11.533 Error: Unable to open file: /sdcard/android_base.apk
18:57:11.556 Consider using a file under /data/local/tmp/
18:57:11.577 Error: Can't open file: /sdcard/android_base.apk
18:57:11.602 Exception occurred while executing:
18:57:11.623 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_base.apk
18:57:11.644 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
18:57:11.669 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
18:57:11.690 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
18:57:11.710 at android.os.ShellCommand.exec(ShellCommand.java:104)
18:57:11.734 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
18:57:11.756 at android.os.Binder.shellCommand(Binder.java:881)
18:57:11.776 at android.os.Binder.onTransact(Binder.java:765)
18:57:11.802 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
18:57:11.822 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
18:57:11.844 at android.os.Binder.execTransactInternal(Binder.java:1021)
18:57:11.864 at android.os.Binder.execTransact(Binder.java:994)
18:57:13.157 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk: 1 file pushed. 35.4 MB/s (55655425 bytes in 1.501s)
18:57:13.306 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
18:57:13.330 System server has no access to read file context u:object_r:sdcardfs:s0 (from path /sdcard/android_base.apk, context u:r:system_server:s0)
18:57:13.351 Error: Unable to open file: /sdcard/android_base.apk
18:57:13.372 Consider using a file under /data/local/tmp/
18:57:13.393 Error: Can't open file: /sdcard/android_base.apk
18:57:13.413 Exception occurred while executing:
18:57:13.433 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_base.apk
18:57:13.456 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
18:57:13.476 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
18:57:13.496 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
18:57:13.517 at android.os.ShellCommand.exec(ShellCommand.java:104)
18:57:13.539 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
18:57:13.560 at android.os.Binder.shellCommand(Binder.java:881)
18:57:13.580 at android.os.Binder.onTransact(Binder.java:765)
18:57:13.600 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
18:57:13.623 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
18:57:13.643 at android.os.Binder.execTransactInternal(Binder.java:1021)
18:57:13.663 at android.os.Binder.execTransact(Binder.java:994)
18:57:13.684 安装HBuilder基座App失败,请使用手机助手手动安装/Applications/HBuilderX.app/Contents/HBuilderX/plugins/launcher/base/android_base.apk到手机上,并重新运行真机调试。
18:57:13.706 已停止运行...
5***@qq.com (作者)
是的
2022-06-08 10:03