{"action":"created","issue":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/1029","labels_url":"https://api.github.com/repos/selendroid/selendroid/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/selendroid/selendroid/issues/1029/comments","events_url":"https://api.github.com/repos/selendroid/selendroid/issues/1029/events","html_url":"https://github.com/selendroid/selendroid/issues/1029","id":128492699,"number":1029,"title":"Not able to start Selendorid Server ","user":{"login":"ngohchuong","id":16876411,"avatar_url":"https://avatars.githubusercontent.com/u/16876411?v=3","gravatar_id":"","url":"https://api.github.com/users/ngohchuong","html_url":"https://github.com/ngohchuong","followers_url":"https://api.github.com/users/ngohchuong/followers","following_url":"https://api.github.com/users/ngohchuong/following{/other_user}","gists_url":"https://api.github.com/users/ngohchuong/gists{/gist_id}","starred_url":"https://api.github.com/users/ngohchuong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngohchuong/subscriptions","organizations_url":"https://api.github.com/users/ngohchuong/orgs","repos_url":"https://api.github.com/users/ngohchuong/repos","events_url":"https://api.github.com/users/ngohchuong/events{/privacy}","received_events_url":"https://api.github.com/users/ngohchuong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T09:13:18Z","updated_at":"2016-01-26T14:07:33Z","closed_at":null,"body":"I'm working on windows 7 64 bit machine. Set up ANDROID_HOME , JAVA_HOME , PATH successful.\r\nWhen i run this command on cmd: \r\n![cmd](https://cloud.githubusercontent.com/assets/16876411/12546744/791f7d52-c37e-11e5-9231-35903328fb87.png)\r\nPlease help me\r\nBut when i start from java eclipse: \r\n\r\n\r\nINFO: Starting Selendroid standalone on port 4444\r\nJan 25, 2016 3:57:13 PM io.selendroid.standalone.io.ShellCommand exec\r\nINFO: Executing shell command: C:\\Users\\GCAFE\\android-sdks\\platform-tools\\aapt.exe remove C:\\Chuong\\Work\\Automation\\AdvanceSelendroid\\src\\main\\resources\\toppay.apk META-INF/MANIFEST.MF\r\nJan 25, 2016 3:57:14 PM io.selendroid.standalone.io.ShellCommand exec\r\nSEVERE: Error executing command: C:\\Users\\GCAFE\\android-sdks\\platform-tools\\aapt.exe remove C:\\Chuong\\Work\\Automation\\AdvanceSelendroid\\src\\main\\resources\\toppay.apk META-INF/MANIFEST.MF\r\norg.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)\r\n\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)\r\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)\r\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)\r\n\tat io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)\r\n\tat io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)\r\n\tat io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)\r\n\tat io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:142)\r\n\tat io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)\r\n\tat io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)\r\n\tat io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)\r\n\tat io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)\r\n\tat io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)\r\n\tat io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)\r\n\tat io.selendroid.standalone.SelendroidLauncher.launchSelendroid(SelendroidLauncher.java:90)\r\n\tat AdvanceSelendroid.AdvanceTest.setup(AdvanceTest.java:29)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)\r\n\r\nJan 25, 2016 3:57:14 PM io.selendroid.standalone.io.ShellCommand exec\r\nINFO: Executing shell command: C:\\Users\\GCAFE\\android-sdks\\platform-tools\\aapt.exe remove C:\\Chuong\\Work\\Automation\\AdvanceSelendroid\\src\\main\\resources\\toppay.apk META-INF/CERT.RSA\r\nJan 25, 2016 3:57:14 PM io.selendroid.standalone.io.ShellCommand exec\r\nSEVERE: Error executing command: C:\\Users\\GCAFE\\android-sdks\\platform-tools\\aapt.exe remove C:\\Chuong\\Work\\Automation\\AdvanceSelendroid\\src\\main\\resources\\toppay.apk META-INF/CERT.RSA\r\norg.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)\r\n\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)\r\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)"},"comment":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/comments/175031563","html_url":"https://github.com/selendroid/selendroid/issues/1029#issuecomment-175031563","issue_url":"https://api.github.com/repos/selendroid/selendroid/issues/1029","id":175031563,"user":{"login":"pver","id":1618378,"avatar_url":"https://avatars.githubusercontent.com/u/1618378?v=3","gravatar_id":"","url":"https://api.github.com/users/pver","html_url":"https://github.com/pver","followers_url":"https://api.github.com/users/pver/followers","following_url":"https://api.github.com/users/pver/following{/other_user}","gists_url":"https://api.github.com/users/pver/gists{/gist_id}","starred_url":"https://api.github.com/users/pver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pver/subscriptions","organizations_url":"https://api.github.com/users/pver/orgs","repos_url":"https://api.github.com/users/pver/repos","events_url":"https://api.github.com/users/pver/events{/privacy}","received_events_url":"https://api.github.com/users/pver/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T14:07:33Z","updated_at":"2016-01-26T14:07:33Z","body":"Actually, the entire aapt command being executed is:\r\n\r\n```C:\\Users\\GCAFE\\android-sdks\\platform-tools\\aapt.exe remove C:\\Chuong\\Work\\Automation\\AdvanceSelendroid\\src\\main\\resources\\toppay.apk META-INF/MANIFEST.MF```\r\n\r\n(you forgot the 'META-INF/MANIFEST.MF' argument)\r\n\r\nThis does not necessarily mean that this is the root cause: at startup the selendroid server is trying to remove a bunch of files from the apk 'just to be sure'. It doesn't check if every file is actually in the apk or not: https://github.com/selendroid/selendroid/blob/master/selendroid-standalone/src/main/java/io/selendroid/standalone/builder/SelendroidServerBuilder.java#L140\r\nWhen a file isn't present, it outputs the errors you see.. This is very confusing and spams the logs unnecessarily, but it shouldn't stop the server from starting. (I see those errors as well when I start the server, but everything is ok)\r\n\r\nDo you have more logging after that error? After the 'aapt.exe remove' part, it should show a 'jarsigner.exe' command being executed"}}