1.appium 版本太低 1.4
所以需要手动删除Appium Settings 再次启动安装就好了
达到目的:如何不手动删除,可以不重复安装
解决办法:注释掉以下两行代码即可解决
//this.pushSettingsApp.bind(this),
//this.pushUnlock.bind(this),
路径:Appium\node_modules\appium\lib\devices\android\android.js
找到如下代码段:
Android.prototype.start = function (cb, onDie) {
this.launchCb = cb;
this.uiautomatorExitCb = onDie;
logger.info("Starting android appium");
async.series([
this.initJavaVersion.bind(this),
this.initAdb.bind(this),
this.packageAndLaunchActivityFromManifest.bind(this),
this.initUiautomator.bind(this),
this.prepareDevice.bind(this),
this.checkApiLevel.bind(this),
this.pushStrings.bind(this),
this.processFromManifest.bind(this),
this.uninstallApp.bind(this),
this.installAppForTest.bind(this),
this.f