【Python求助】在eclipse和pycharm中,通過adb install安裝中文名字APK時老是報錯,如何解決
阿新 • • 發佈:2018-07-20
style com all auto RoCE mod python lin sage
1 # -*- coding: utf-8 -*- 2 import os 3 import sys 4 import subprocess 5 import time 6 from uiautomator import device as d 7 subprocess.check_output(r‘adb install E:\Project\work\exercise\app_list\程序.apk‘)
輸出如下:
1 adb: usage: filename doesn‘t end .apk: E:\Project\work\exercise\app_list\鑻辮嫻佸埄璇?apk2 Traceback (most recent call last): 3 File "E:\Project\work\exercise\debug.py", line 12, in <module> 4 print subprocess.check_output(cmd) 5 File "C:\Python27\lib\subprocess.py", line 573, in check_output 6 raise CalledProcessError(retcode, cmd, output=output) 7 subprocess.CalledProcessError: Command ‘adb install E:\Project\work\exercise\app_list\程序.apk‘ returned non-zero exit status 1
【Python求助】在eclipse和pycharm中,通過adb install安裝中文名字APK時老是報錯,如何解決