错误:
selenium.common.exceptions.WebDriverException: Message: A new session could not be created. (Original error: Command failed: C:Windowssystem32cmd.exe /s /c "java -jar E:Appium
ode_modulesappium
ode_modulesappium-adbjarssign.jar D:wwwalgorithm_learn oolsapp_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文件放入相关目录即可