Appium自動化報錯: UiAutomationService already registered!

報錯:

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。

https://www.cnblogs.com/mo-nian/p/15417671.html 待測速

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容