【Python求助】在eclipse和pycharm中,通过adb install安装中文名字APK时老是报错,如何解决

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\鑻辫娴佸埄璇?apk
2 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

 

posted @ 2018-07-20 14:47  iSZ  阅读(1364)  评论(0编辑  收藏  举报