appium+python3+pycharm踩得坑

错误:

selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Command failed: C:\Windows\system32\cmd.exe /s /c "java -jar E:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar D:\www\algorithm_learn\tools\app_aweGW_v5.1.0_e039e8a.apk --override"
java.util.zip.ZipException: zip file is empty
at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1252)
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1072)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1160)
at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:997)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:960)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:216)
at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:148)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:324)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:295)
at java.base/java.util.jar.JarFile.<init>(JarFile.java:275)
at s.Sign.sign(Sign.java:441)
at s.Sign.main(Sign.java:532)
)

解决方法:其实是之前使用安装包时安装包部分文件已经编译 ,所以只需要再次把apk文件放入相关目录即可

posted @ 2019-02-28 14:25  窃语  阅读(418)  评论(0编辑  收藏  举报