gpt4 book ai didi

java - 启动 Selendroid 中的异常

转载 作者:行者123 更新时间:2023-11-29 21:11:08 26 4
gpt4 key购买 nike

我正尝试从 Selendroid 测试开始。但是当我使用以下命令启动 Selendroid 时:

java -jar selendroid-standalone-0.9.0-with-dependencies.jar -app selendroid-test-app-0.9.0.apk

我得到如下异常。

D:\J Drive\android-sdk\tools>java -jar selendroid-standalone-0.9.0-with-dependen cies.jar -app selendroid-test-app-0.9.0.apk Apr 01, 2014 5:44:02 PM io.selendroid.SelendroidLauncher main INFO: ################# Selendroid ################# Apr 01, 2014 5:44:02 PM io.selendroid.SelendroidLauncher lauchServer INFO: Starting selendroid-server port 4444 Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: D:\J Drive\android-sdk\build-tools\19.0.3\aapt.exe remo ve D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk META-INF/MANIFEST. MF Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: D:\J Drive\android-sdk\build-tools\19.0.3\aapt.exe remo ve D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk META-INF/CERT.RSA Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: D:\J Drive\android-sdk\build-tools\19.0.3\aapt.exe remo ve D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk META-INF/CERT.SF Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: D:\J Drive\android-sdk\build-tools\19.0.3\aapt.exe remo ve D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk META-INF/ANDROIDD. SF Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: D:\J Drive\android-sdk\build-tools\19.0.3\aapt.exe remo ve D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk META-INF/ANDROIDD. RSA Apr 01, 2014 5:44:02 PM io.selendroid.io.ShellCommand exec INFO: executing command: J:\java\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar D:\J Drive\android-sdk\tools\resigned-selendroid-test-app-0.9.0 .apk -storepass android -keystore C:\Users\ADMIN.android\debug.keystore D:\J Dr ive\android-sdk\tools\selendroid-test-app-0.9.0.apk androiddebugkey Apr 01, 2014 5:44:03 PM io.selendroid.SelendroidLauncher lauchServer SEVERE: Error occurred while building server: An error occurred while resigning the app 'selendroid-test-app-0.9.0.apk'. io.selendroid.exceptions.SessionNotCreatedException: An error occurred while res igning the app 'selendroid-test-app-0.9.0.apk'. at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication sUnderTest(SelendroidStandaloneDriver.java:114) at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro idStandaloneDriver.java:82) at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS erver(SelendroidStandaloneServer.java:91) at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan daloneServer.java:65) at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java: 67) at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:114) Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil e executing shell command: J:\java\bin\jarsigner.exe -sigalg MD5withRSA -digesta lg SHA1 -signedjar D:\J Drive\android-sdk\tools\resigned-selendroid-test-app-0.9 .0.apk -storepass android -keystore C:\Users\ADMIN.android\debug.keystore D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk androiddebugkey at io.selendroid.io.ShellCommand.exec(ShellCommand.java:53) at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro idServerBuilder.java:274) at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer verBuilder.java:134) at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication sUnderTest(SelendroidStandaloneDriver.java:112) ... 5 more Caused by: io.selendroid.exceptions.ShellCommandException: ... 9 more Exception in thread "main" io.selendroid.exceptions.SessionNotCreatedException: An error occurred while resigning the app 'selendroid-test-app-0.9.0.apk'. at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication sUnderTest(SelendroidStandaloneDriver.java:114) at io.selendroid.server.model.SelendroidStandaloneDriver.(Selendro idStandaloneDriver.java:82) at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS erver(SelendroidStandaloneServer.java:91) at io.selendroid.server.SelendroidStandaloneServer.(SelendroidStan daloneServer.java:65) at io.selendroid.SelendroidLauncher.lauchServer(SelendroidLauncher.java: 67) at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:114) Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil e executing shell command: J:\java\bin\jarsigner.exe -sigalg MD5withRSA -digesta lg SHA1 -signedjar D:\J Drive\android-sdk\tools\resigned-selendroid-test-app-0.9 .0.apk -storepass android -keystore C:\Users\ADMIN.android\debug.keystore D:\J Drive\android-sdk\tools\selendroid-test-app-0.9.0.apk androiddebugkey at io.selendroid.io.ShellCommand.exec(ShellCommand.java:53) at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro idServerBuilder.java:274) at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer verBuilder.java:134) at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication sUnderTest(SelendroidStandaloneDriver.java:112) ... 5 more Caused by: io.selendroid.exceptions.ShellCommandException: ... 9 more

最佳答案

添加到系统环境键JAVA_HOME和值“C:\Program Files (x86)\Java\jdk1.6.0_39”

关于java - 启动 Selendroid 中的异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22787840/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com