star1115
star1115
  • 发布:2023-05-09 21:27
  • 更新:2023-05-10 11:23
  • 阅读:271

模拟器基座安装失败

分类:HBuilderX

基座运行到模拟器安装失败
环境windows11 22H2

hbuilderX 3.7.11.20230427
逍遥安卓模拟器版本 9.0.0

2023-05-09 21:27 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

  1. 运行到真机、其它模拟器是否正常?
  2. 自定义过adb路径?如截图所示,将那条adb命令拷贝出来,手动在命令行执行一下。看下能否成功。
  • star1115 (作者)

    C:\Users\star> D:/Microvirt/MEmu/adb.exe -s 127.0.0.1:21503 install -r -d -t D:\HBuilderX\plugins\launcher/base/android_base.apk

    Performing Streamed Install

    adb: failed to install D:\HBuilderX\plugins\launcher/base/android_base.apk:

    Exception occurred while executing:

    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.endsWith(java.lang.String)' on a null object reference

    at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:968)

    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:179)

    at android.os.ShellCommand.exec(ShellCommand.java:103)

    at com.android.server.pm.PackageManagerService.onShellCommand(PackageM

    2023-05-10 18:06

  • star1115 (作者)

    还是一样报错,我就安装了逍遥安卓模拟器,其他模拟器和真机还没测试

    2023-05-10 18:06

  • star1115 (作者)

    真机调试没问题,就模拟器有问题

    2023-05-10 18:15

要回复问题请先登录注册