没相当刚把上一个错误解决,这个马上就解决了:
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"
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at s.Sign.addDigestsToManifest(Sign.java:108)
at s.Sign.sign(Sign.java:454)
at s.Sign.main(Sign.java:532)
Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 3 more
解决方法:之前本人电脑java jdk 环境是1.9 把java jdk 将为1.7 不会在报任何错