Comments (4)
加上 --verbose
看看输出啥
from uiautomator2.
C:\Users\zybang>python -m uiautomator2 init --verbose
2018-02-28 20:11:30,407 - main.py:243 - INFO - Device(EUSSNRQK8DLJCMFA) init
ialing ...
2018-02-28 20:11:36,125 - main.py:106 - DEBUG - install minicap.so
2018-02-28 20:11:38,495 - main.py:71 - DEBUG - download from https://github.
com/codeskyblue/stf-binaries/raw/master/node_modules/minicap-prebuilt/prebuilt/a
rm64-v8a/lib/android-adb server version (32) doesn't match this client (36); kil
ling...
- daemon started successfully *
22/minicap.so
Traceback (most recent call last):
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\runpy.py", li
ne 193, in run_module_as_main
"main", mod_spec)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\runpy.py", li
ne 85, in run_code
exec(code, run_globals)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\uiautomator2_main.py", line 305, in
main()
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\uiautomator2_main.py", line 301, in main
fire.Fire(MyFire)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\fire\core.py", line 127, in Fire
component_trace = Fire(component, args, context, name)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\fire\core.py", line 366, in Fire
component, remaining_args)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\fire\core.py", line 542, in CallCallable
result = fn(*varargs, **kwargs)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\uiautomator2_main.py", line 246, in init
ins.install_minicap()
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\uiautomator2_main.py", line 108, in install_minicap
path = cache_download(url)
File "C:\Users\zybang\AppData\Local\Programs\Python\Python36\lib\site-packages
\uiautomator2_main.py", line 73, in cache_download
raise Exception("status code", r.status_code)
Exception: ('status code', 404)
from uiautomator2.
你这个是因为电脑上的adb太多了
from uiautomator2.
找到你android sdk的platform-tools/adb,看一下adb versions
是多少,确保整个电脑上就一个adb,不要到处装。然后adb kill-server
from uiautomator2.
Related Issues (20)
- HTTP Return code is not 200 HOT 1
- 通过shell使用app_process启动一个apk,会被killed
- 这个项目和appium的uiautomator2的不是同一个项目吧? HOT 1
- uiautomator2.GatewayError HOT 1
- 代码提示错误:Invalid version: '' HOT 2
- dump_hierarchy显示的元素不完整 HOT 2
- Can't connect inside a docker container
- 多设备操作时提示:UiAutomationNotConnectedError: ({'code': -32001, 'message': 'java.lang.IllegalStateException', 'data': 'java.lang.IllegalStateException: U HOT 2
- 能否帮助做下对安卓10剪切板的支持
- RuntimeError: more than one device/emulator, please specify the serial number
- device.app_start()函数以及device.app_info()函数在某些应用上会出错 HOT 1
- 自研设备上面,安卓版本9.0 没有页面APP页面,怎么命令行启动ATX 测试工具。目前无法点击ATX应用中的启动UIAUTOMATOR按钮 HOT 1
- 多线程adb很容易卡死
- 多台设备,USB没问题,Wifi就会随机几台设备出现adbutils.errors.AdbError: unknown host service
- MacOS M2芯片UIAutomator2无法init HOT 1
- uiautomator2/assets/app-uiautomator.apk' not found HOT 5
- (开头的xpath识别错误 HOT 2
- 使用.child("")后,原XPathSelector对象的xpath表达式被永久修改. HOT 3
- 手动Init时com.github.uiautomator报WindowManagerEventInjector is not supported HOT 2
- NAF控件的属性怎么获取 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiautomator2.