之前一直使用逍遥模拟器7进行自动化测试,脚本框架是appium,7版本的模拟器可以正常运行脚本;近想升级模拟器9,但是脚本启动之前的安装appium安装命令一直报错;
adb -P 5037 -s 127.0.0.1:21553 install -g C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk
Performing Streamed Install
adb: failed to install C:\Users\Administrator\AppData\Roaming\npm\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.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……