今天用新手机,运行appium 1.6.3 测试,发现日志打印如下错误:
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","xxxxxxxxxxx","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.tencent.mm","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
仔细看日志发现,发现/data/local/tmp缺少AppiumBootstrap.jar
然后在appium的node_module目录下面的appium-android-bootstrap\bootstrap\bin找到AppiumBootstrap.jar,然后复制到/data/local/tmp就可以,然后再运行,测试OK