报错:
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的三个应用卸载了,加自启权限了都没用,连接spector的时候一直报错,然后想到做无障碍的时候也会偶尔遇到类似问题,遂重启手机就好了。果然应该是android本身的bug。