xiaocong / uiautomator

Python wrapper of Android uiautomator test tool.
MIT License
2.04k stars 643 forks source link

No connection could be made because the target machine actively refused it #306

Open alx-xlx opened 3 years ago

alx-xlx commented 3 years ago
   raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=9011): Max retries exceeded with url: /jsonrpc/0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000179D51303D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

During handling of the above exception, another exception occurred:

I get this error, however other scrcpy etc are working fine

sajeel12 commented 1 year ago

Bro uiautomator is not installing the apps in your mobile , So you can install it manually Navigate to uiautomator module folder and inside it lib folder there you will find 4 apks So you have to install 2 only one is "app-uiautomator-androidx.apk" second "app-uiautomator-test-androidx.apk"