Python求助在eclipse和pycharm中,通过adb install安装中文名字APK时老是报错,如何解决
Posted 51study
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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:Projectworkexerciseapp_list程序.apk‘)
输出如下:
1 adb: usage: filename doesn‘t end .apk: E:Projectworkexerciseapp_list鑻辫娴佸埄璇?apk 2 Traceback (most recent call last): 3 File "E:Projectworkexercisedebug.py", line 12, in <module> 4 print subprocess.check_output(cmd) 5 File "C:Python27libsubprocess.py", line 573, in check_output 6 raise CalledProcessError(retcode, cmd, output=output) 7 subprocess.CalledProcessError: Command ‘adb install E:Projectworkexerciseapp_list程序.apk‘ returned non-zero exit status 1
以上是关于Python求助在eclipse和pycharm中,通过adb install安装中文名字APK时老是报错,如何解决的主要内容,如果未能解决你的问题,请参考以下文章
使用AWS CodeStar Python项目和JetBrain PyCharm