報錯:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.
查看詳細日志查到這一行
Caused by: java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient $Stub Proxy@38cefbbalready registered!
期間把appium的三個應(yīng)用卸載了,加自啟權(quán)限了都沒用,連接spector的時候一直報錯,然后想到做無障礙的時候也會偶爾遇到類似問題,遂重啟手機就好了。果然應(yīng)該是android本身的bug。