HBuilderX真机运行自定义基座报错:
有谁遇到过吗?是怎么处理的。
一直重装运行还是不行,我就搞不懂了我该 点的全点了。难道是我手机问题
[广告] 16:14:53.093 开源不易,需要鼓励。去给 uni-app 项目 点个 star 吧 [不再提示]
[广告] 16:14:53.093 DCloud 2021新春招聘开启,欢迎前端、Android、C++/QT来投简历! 详情点击
16:14:53.101 项目 'uniapp' 开始编译...
16:14:54.332 编译器版本:3.2.12(v3)看:https://ask.dcloud.net.cn/article/36599。
16:14:54.335 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
16:14:54.339 正在编译中...
16:15:34.659 正在热重载...
16:15:35.794 DONE Build complete. Watching for changes...
16:15:35.797 项目 'uniapp' 编译成功。
16:15:36.144 正在建立手机连接...
16:15:37.105 检测到自定义基座有更新,正在删除旧版本...
16:15:37.786 删除旧版自定义基座基座成功
16:15:37.807 正在安装手机端自定义基座...
16:15:41.574 5340 KB/s (20290321 bytes in 3.710s)
16:15:41.847 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
16:15:41.868 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)
16:15:41.889 Error: Unable to open file: /sdcard/android_debug.apk
16:15:41.909 Consider using a file under /data/local/tmp/
16:15:41.930 Error: Can't open file: /sdcard/android_debug.apk
16:15:41.951 Exception occurred while executing:
16:15:41.972 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
16:15:41.993 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
16:15:42.013 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
16:15:42.034 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
16:15:42.055 at android.os.ShellCommand.exec(ShellCommand.java:104)
16:15:42.076 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
16:15:42.097 at android.os.Binder.shellCommand(Binder.java:881)
16:15:42.119 at android.os.Binder.onTransact(Binder.java:765)
16:15:42.139 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
16:15:42.160 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
16:15:42.181 at android.os.Binder.execTransactInternal(Binder.java:1021)
16:15:42.202 at android.os.Binder.execTransact(Binder.java:994)
16:15:42.224 注:有些手机需要点亮手机屏幕并点击【安装】按钮才能安装成功
16:15:47.040 4002 KB/s (20290321 bytes in 4.950s)
16:15:47.288 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
16:15:47.309 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)
16:15:47.330 Error: Unable to open file: /sdcard/android_debug.apk
16:15:47.351 Consider using a file under /data/local/tmp/
16:15:47.372 Error: Can't open file: /sdcard/android_debug.apk
16:15:47.393 Exception occurred while executing:
16:15:47.413 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
16:15:47.434 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
16:15:47.455 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
16:15:47.476 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
16:15:47.497 at android.os.ShellCommand.exec(ShellCommand.java:104)
16:15:47.518 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
16:15:47.539 at android.os.Binder.shellCommand(Binder.java:881)
16:15:47.560 at android.os.Binder.onTransact(Binder.java:765)
16:15:47.581 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
16:15:47.602 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
16:15:47.622 at android.os.Binder.execTransactInternal(Binder.java:1021)
16:15:47.643 at android.os.Binder.execTransact(Binder.java:994)
16:15:51.969 4507 KB/s (20290321 bytes in 4.395s)
16:15:52.240 avc: denied { read } for scontext=u:r:system_server:s0 tcontext=u:object_r:sdcardfs:s0 tclass=file permissive=0
16:15:52.261 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)
16:15:52.281 Error: Unable to open file: /sdcard/android_debug.apk
16:15:52.304 Consider using a file under /data/local/tmp/
16:15:52.323 Error: Can't open file: /sdcard/android_debug.apk
16:15:52.344 Exception occurred while executing:
16:15:52.365 java.lang.IllegalArgumentException: Error: Can't open file: /sdcard/android_debug.apk
16:15:52.386 at com.android.server.pm.PackageManagerShellCommand.setParamsSize(PackageManagerShellCommand.java:469)
16:15:52.407 at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1068)
16:15:52.428 at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:177)
16:15:52.448 at android.os.ShellCommand.exec(ShellCommand.java:104)
16:15:52.469 at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23923)
16:15:52.489 at android.os.Binder.shellCommand(Binder.java:881)
16:15:52.510 at android.os.Binder.onTransact(Binder.java:765)
16:15:52.531 at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:5185)
16:15:52.553 at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4511)
16:15:52.572 at android.os.Binder.execTransactInternal(Binder.java:1021)
16:15:52.593 at android.os.Binder.execTransact(Binder.java:994)
16:15:52.614 安装自定义基座App失败请使用手机助手手动安装E:\work\project\uniapp\unpackage\debug\android_debug.apk到手机上,并重新运行真机调试。
16:15:52.635 已停止运行...
3.4.7最新版还是有,手机是小米11ultra 系统是android12 电脑系统是win11 要么就是安装之后说:
编译APP同步资源失败,无法重启,请手动重启后重新运行
要么就是:
安装HBuilder基座App失败,请使用手机助手手动安装……
你好,公司目前采用的是桌面思杰的桌面开发,在使用真机调试的时候出现“安装HBuilder基座App失败,请使用手机助手手动安装D:\HBuilderX\plugins\launcher\base\android_base.apk到手机上,并重新运行真机调试。”的错误,请问我应该怎么去排查问题呢?也未找到报错的原因以及对应的日志文件。
正在建立手机连接...
16:55:17.125 正在安装手机端HBuilder调试基座...
16:55:36.268 安装失败,失败原因:protocol failure。
16:55:36.269 请使用手机助手手动安装D:\HBuilderX\plugins\launcher\base\android_base.apk到手机上,并重新运行真机调试。
16:55:36.299 已停止运行...
处理完 adb 后 自定义基座调试与标准运行基座都失败emm
16:48:39.469 项目 'music-软件' 开始编译...
16:48:40.472 3.5.3
16:48:40.472 请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
16:48:40.544 正在编译中...
16:48:45.312 项目 'music-软件' 编译成功。
16:48:45.500 正在建立手机连接...
16:48:47.659 正在安装手机端HBuilder调试基座...
16:48:47.700 Performing Push Install
16:48:47.722 安装失败,失败原因:adb: error: failed to get feature set: device '127.0.0.1:21503' not found。
16:48:47.722 请使用手机助手手动安装D:\app\HBuilderX\HBuilderX\plugins\launcher\base\android_base.apk到手机上,并重新运行真机调试。
16:48:47.741 已停止运行...是使用win10系统在hbuilderx上写uni-app项目运行到逍遥模拟器中出现的问题
否否 (作者)
已采纳。感谢W小姐。[/玫瑰][/玫瑰]
2019-07-31 14:52
7***@qq.com
还是不行 o(╥﹏╥)o
2020-11-23 09:41