6***@qq.com
6***@qq.com
  • 发布:2021-01-15 15:30
  • 更新:2021-10-19 17:02
  • 阅读:1441

【报Bug】自定义基座真机无法安装

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win7

HBuilderX版本号: 3.0.5

操作步骤:

*

预期结果:

*

实际结果:

*

bug描述:

15:27:18.575 正在建立手机连接...
15:27:19.075 正在安装手机端自定义基座...
15:27:54.461 4090 KB/s (68566209 bytes in 16.370s)
15:27:54.581 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
15:27:54.601 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)
15:27:54.621 Error: Unable to open file: /sdcard/android_debug.apk
15:27:54.641 Consider using a file under /data/local/tmp/
15:27:54.661 Error: Can't open file: /sdcard/android_debug.apk
15:27:54.681 Exception occurred while executing:
15:27:54.701 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
15:27:54.721 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
15:27:54.741 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1124)
15:27:54.761 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
15:27:54.781 at android.os.ShellCommand.exec(ShellCommand.java:104)
15:27:54.801 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24112)
15:27:54.821 at android.os.Binder.shellCommand(Binder.java:881)
15:27:54.841 at android.os.Binder.onTransact(Binder.java:765)
15:27:54.861 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5100)
15:27:54.881 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4783)
15:27:54.901 at com.android.server.pm.OppoPackageManagerService.onTransact(OppoPackageManagerService.java:83)
15:27:54.921 at android.os.Binder.execTransactInternal(Binder.java:1021)
15:27:54.941 at android.os.Binder.execTransact(Binder.java:994)
15:27:54.961 Exception occurred while executing:
15:28:14.499 3366 KB/s (68566209 bytes in 19.890s)
15:28:14.619 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
15:28:14.639 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)
15:28:14.659 Error: Unable to open file: /sdcard/android_debug.apk
15:28:14.679 Consider using a file under /data/local/tmp/
15:28:14.699 Error: Can't open file: /sdcard/android_debug.apk
15:28:14.719 Exception occurred while executing:
15:28:14.739 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
15:28:14.759 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
15:28:14.779 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1124)
15:28:14.799 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
15:28:14.819 at android.os.ShellCommand.exec(ShellCommand.java:104)
15:28:14.839 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24112)
15:28:14.859 at android.os.Binder.shellCommand(Binder.java:881)
15:28:14.879 at android.os.Binder.onTransact(Binder.java:765)
15:28:14.899 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5100)
15:28:14.919 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4783)
15:28:14.939 at com.android.server.pm.OppoPackageManagerService.onTransact(OppoPackageManagerService.java:83)
15:28:14.959 at android.os.Binder.execTransactInternal(Binder.java:1021)
15:28:14.979 at android.os.Binder.execTransact(Binder.java:994)
15:28:14.999 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:479)
15:28:15.019 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1124)
15:28:15.039 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
15:28:15.059 at android.os.ShellCommand.exec(ShellCommand.java:104)
15:28:15.079 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24112)
15:28:15.099 at android.os.Binder.shellCommand(Binder.java:881)
15:28:15.119 at android.os.Binder.onTransact(Binder.java:765)
15:28:15.139 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5100)
15:28:15.159 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4783)
15:28:15.179 at com.android.server.pm.OppoPackageManagerService.onTransact(OppoPackageManagerService.java:83)
15:28:15.199 at android.os.Binder.execTransactInternal(Binder.java:1021)
15:28:15.219 at android.os.Binder.execTransact(Binder.java:994)
15:28:33.659 3524 KB/s (68566209 bytes in 18.997s)
15:28:33.779 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
15:28:33.799 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)
15:28:33.819 Error: Unable to open file: /sdcard/android_debug.apk
15:28:33.839 Consider using a file under /data/local/tmp/
15:28:33.859 Error: Can't open file: /sdcard/android_debug.apk
15:28:33.879 Exception occurred while executing:
15:28:33.899 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
15:28:33.919 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
15:28:33.939 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1124)
15:28:33.959 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
15:28:33.979 at android.os.ShellCommand.exec(ShellCommand.java:104)
15:28:33.999 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24112)
15:28:34.019 at android.os.Binder.shellCommand(Binder.java:881)
15:28:34.039 at android.os.Binder.onTransact(Binder.java:765)
15:28:34.059 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5100)
15:28:34.079 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4783)
15:28:34.099 at com.android.server.pm.OppoPackageManagerService.onTransact(OppoPackageManagerService.java:83)
15:28:34.119 at android.os.Binder.execTransactInternal(Binder.java:1021)
15:28:34.139 at android.os.Binder.execTransact(Binder.java:994)
15:28:34.159 at android.content.pm.PackageParser.parseApkLiteInner(PackageParser.java:1630)
15:28:34.179 at android.content.pm.PackageParser.parseApkLite(PackageParser.java:1588)
15:28:34.199 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:472)
15:28:34.219 ... 11 more
15:28:34.239 Caused by: java.io.FileNotFoundException: Corrupt XML binary file
15:28:34.259 at android.content.res.ApkAssets.nativeOpenXml(Native Method)
15:28:34.279 at android.content.res.ApkAssets.openXml(ApkAssets.java:156)
15:28:34.299 at android.content.pm.PackageParser.parseApkLiteInner(PackageParser.java:1607)
15:28:34.319 ... 13 more
15:28:34.339 3544 KB/s (68566209 bytes in 18.889s)
15:28:34.359 运行失败,失败原因:null
15:28:34.379 已停止运行...

2021-01-15 15:30 负责人:无 分享
已邀请:
睡着就睡着了

睡着就睡着了

我也遇到这个问题了 解决了吗

  • 睡着就睡着了

    我删除了社区的一个插件 就好了 本来想用压缩视频的插件的 打包就报错 就放弃了

    2021-01-18 10:58

  • 6***@qq.com (作者)

    回复 睡着就睡着了: 我也用了这个插件

    2021-01-22 20:53

DCloud_HB_WDL

DCloud_HB_WDL

android系统版本多少?

  • 6***@qq.com (作者)

    android 10.0 我怀也可能是用了那个视频压缩插件导致的

    2021-01-22 20:54

DannyWyl

DannyWyl - dannyWyl

解决了吗?也遇到这问题了

该问题目前已经被锁定, 无法添加新回复