码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2018-07-20 15:19:51      阅读:1258      评论:0      收藏:0      [点我收藏+]

标签:mos   ESS   file   comm   pyc   bug   中文名   coding   recent   

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(radb install E:\Project\work\exercise\app_list\程序.apk)

输出如下:

1 adb: usage: filename doesnt 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

 

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

标签:mos   ESS   file   comm   pyc   bug   中文名   coding   recent   

原文地址:https://www.cnblogs.com/51study/p/9341404.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!