-
Notifications
You must be signed in to change notification settings - Fork 422
执行python -muiautomator2 init 报错是什么原因? #166
Comments
python -muiautomator2 init --verbose 这样看看 |
C:\Users\Administrator>adb version C:\Users\Administrator>python -muiautomator2 init --verbose
|
电脑上的adb太多了,卸载的只剩一个就好了 |
经过尝试,我都已经检查过电脑adb只有一个adb了,应该不是adb太多的原因,根据报错提示/android-adb server version (32) doesn't match this client (36),我安装了adb 1.0.32版本后就解决了上面这个报错,但是出现了新的报错如下: C:\Users\Administrator>python -muiautomator2 init --verbose |
升级一下 uiautomator2 ,然后重试一次 |
谢谢大神,现在OK了! |
E:>python -muiautomator2 init
2018-02-02 15:00:44,652 - main.py:239 - INFO - Device(10a3b908) initialing ...
Traceback (most recent call last):
File "D:\360YP\VM\Python35\lib\runpy.py", line 184, in run_module_as_main
"main", mod_spec)
File "D:\360YP\VM\Python35\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\360YP\VM\Python35\lib\site-packages\uiautomator2_main.py", line 300, in
main()
File "D:\360YP\VM\Python35\lib\site-packages\uiautomator2_main.py", line 296, in main
fire.Fire(MyFire)
File "D:\360YP\VM\Python35\lib\site-packages\fire\core.py", line 127, in Fire
component_trace = Fire(component, args, context, name)
File "D:\360YP\VM\Python35\lib\site-packages\fire\core.py", line 366, in Fire
component, remaining_args)
File "D:\360YP\VM\Python35\lib\site-packages\fire\core.py", line 542, in CallCallable
result = fn(*varargs, **kwargs)
File "D:\360YP\VM\Python35\lib\site-packages\uiautomator2_main.py", line 242, in init
ins.install_minicap()
File "D:\360YP\VM\Python35\lib\site-packages\uiautomator2_main.py", line 107, in install_minicap
path = cache_download(url)
File "D:\360YP\VM\Python35\lib\site-packages\uiautomator2_main.py", line 72, in cache_download
raise Exception("status code", r.status_code)
Exception: ('status code', 404)
The text was updated successfully, but these errors were encountered: