1.aapt不是内部命令也不是外部命令
用户变量path下配置aapt的环境变量:C:\Program Files\Android\android-sdk_r24.4.1-windows\android-sdk-windows\build-tools\25.0.3
2. 端口拒绝访问
错误:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘127.0.0.1’, port=4725): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x00000248683A6FD0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’,))
解决方案:启动appium服务
3.查询apk包的appPackage、appActivity
dos命令输入:appt dump badging apk文件路径