今天用新手機,運行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
仔細看日志發現,發現/data/local/tmp缺少AppiumBootstrap.jar
然后在appium的node_module目錄下面的appium-android-bootstrap\bootstrap\bin找到AppiumBootstrap.jar,然后復制到/data/local/tmp就可以,然后再運行,測試OK