恳求大家指条明路吧,下面完整日志
10:37:04.164 项目 'newProject' 开始编译...
10:37:05.215 编译器版本:3.2.9(v3)看:https://ask.dcloud.net.cn/article/36599。
10:37:05.224 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
10:37:05.352 正在编译中...
10:37:15.489 DONE Build complete. Watching for changes...
10:37:15.511 项目 'newProject' 编译成功。
10:37:15.896 正在建立手机连接...
10:37:15.966 正在安装手机端HBuilder调试基座...
10:37:24.222 [ 0%] /sdcard/android_base.apk
中间略掉
10:37:41.172 [100%] /sdcard/android_base.apk
10:37:41.192 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:fuse:s0 tclass=file permissive=0
10:37:41.214 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)
10:37:41.236 Error: Unable to open file: /sdcard/android_base.apk
10:37:41.256 Consider using a file under /data/local/tmp/
10:37:41.278 Error: Can't open file: /sdcard/android_base.apk
10:37:41.299 Exception occurred while executing 'install':
10:37:41.321 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_base.apk
10:37:41.342 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:547)
10:37:41.363 at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1310)
10:37:41.384 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1276)
10:37:41.405 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:201)
10:37:41.428 at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
10:37:41.448 at android.os.ShellCommand.exec(ShellCommand.java:44)
10:37:41.470 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23629)
10:37:41.494 at android.os.Binder.shellCommand(Binder.java:929)
10:37:41.515 at android.os.Binder.onTransact(Binder.java:813)
10:37:41.536 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5030)
10:37:41.557 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4759)
10:37:41.579 at android.os.Binder.execTransactInternal(Binder.java:1159)
10:37:41.599 at android.os.Binder.execTransact(Binder.java:1123)
10:37:41.623 注:有些手机需要点亮手机屏幕并点击【安装】按钮才能安装成功
10:37:41.644 Success
10:37:41.665 正在同步手机端程序文件...
10:37:41.685 检测到正在运行真机调试的是安卓11设备,可能会出现读写失败问题,如遇到此类问题,请参考 https://ask.dcloud.net.cn/article/97
10:37:41.707 同步手机端程序文件完成
10:39:34.012 同步资源超时,请重新操作
3 个回复
4***@qq.com
我的也是这样。 你的系统是不是Mac M1芯片的? 我查可能是因为这个android_base.apk编译不是针对arm芯片的。 但是具体怎么解决不知道。
小怪兽RUA
你好,楼主解决这个问题了吗
DCloud_HB_WDL
请升级到HBuilderX最新版(3.3.9) 试试。
ason
已经是最新版本的了,还是报错哦
2022-02-10 09:26