今天用新手機(jī),運(yùn)行appium 1.6.3 測試,發(fā)現(xiàn)日志打印如下錯誤:
[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
仔細(xì)看日志發(fā)現(xiàn),發(fā)現(xiàn)/data/local/tmp缺少AppiumBootstrap.jar
然后在appium的node_module目錄下面的appium-android-bootstrap\bootstrap\bin找到AppiumBootstrap.jar,然后復(fù)制到/data/local/tmp就可以,然后再運(yùn)行,測試OK