{"action":"closed","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4617","labels_url":"https://api.github.com/repos/appium/appium/issues/4617/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4617/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4617/events","html_url":"https://github.com/appium/appium/issues/4617","id":59204129,"number":4617,"title":"Original error: Waited 20 secs for selendroid server and it never showed up.","user":{"login":"Alessko","id":3274425,"avatar_url":"https://avatars.githubusercontent.com/u/3274425?v=3","gravatar_id":"","url":"https://api.github.com/users/Alessko","html_url":"https://github.com/Alessko","followers_url":"https://api.github.com/users/Alessko/followers","following_url":"https://api.github.com/users/Alessko/following{/other_user}","gists_url":"https://api.github.com/users/Alessko/gists{/gist_id}","starred_url":"https://api.github.com/users/Alessko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alessko/subscriptions","organizations_url":"https://api.github.com/users/Alessko/orgs","repos_url":"https://api.github.com/users/Alessko/repos","events_url":"https://api.github.com/users/Alessko/events{/privacy}","received_events_url":"https://api.github.com/users/Alessko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NoActivity","name":"NoActivity","color":"eb6420"},{"url":"https://api.github.com/repos/appium/appium/labels/Selendroid","name":"Selendroid","color":"4DeeaF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-02-27T08:19:24Z","updated_at":"2015-06-15T08:57:20Z","closed_at":"2015-06-15T08:57:20Z","body":"I have faced with an issue.\r\nDoes anyone have any solutions to fix it?\r\n\r\nBelow there is my log:\r\n\r\n> info: Welcome to Appium v1.2.0 (REV e53f49c706a25242e66d36685c268b599cc18da5)\r\n> debug: Non-default server args: {\"address\":\"127.0.0.1\",\"logNoColors\":true,\"platformName\":\"Android\",\"platformVersion\":\"18\",\"automationName\":\"Selendroid\"}\r\n> info: Appium REST http interface listener started on 127.0.0.1:4723\r\n> info: LogLevel: debug\r\n> info: --> POST /wd/hub/session {\"desiredCapabilities\":{\"platformName\":\"Android\",\"platformVersion\":\"4.3\",\"automationName\":\"Selendroid\",\"deviceName\":\"Android Emulator\",\"app\":\"D:\\\\Projects\\\\MobileTrader_a.iusko\\\\Main\\\\Source\\\\android\\\\app\\\\build\\\\outputs\\\\apk\\\\app-debug-0.1.45029.apk\",\"appPackage\":\"com.test.app\",\"appActivity\":\".login.LoginActivity\"}}\r\n> debug: Appium request initiated at /wd/hub/session\r\n> debug: Request received with params: {\"desiredCapabilities\":{\"platformName\":\"Android\",\"platformVersion\":\"4.3\",\"automationName\":\"Selendroid\",\"deviceName\":\"Android Emulator\",\"app\":\"D:\\\\Projects\\\\MobileTrader_a.iusko\\\\Main\\\\Source\\\\android\\\\app\\\\build\\\\outputs\\\\apk\\\\app-debug-0.1.45029.apk\",\"appPackage\":\"com.test.app\",\"appActivity\":\".login.LoginActivity\"}}\r\n> debug: Using local app from desired caps: D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\r\n> debug: Creating new appium session 811fa6b3-8aa1-4c66-8426-8ea35c5cbce8\r\n> debug: Starting selendroid server\r\n> debug: Checking whether selendroid is built yet\r\n> info: Retrieving device\r\n> debug: Selendroid server exists!\r\n> debug: Preparing device for session\r\n> debug: Checking whether app is actually present\r\n> debug: Checking whether adb is present\r\n> debug: Using adb from C:\\Android\\platform-tools\\adb.exe\r\n> debug: Trying to find a connected android device\r\n> debug: Getting connected devices...\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" devices\r\n> debug: 1 device(s) connected\r\n> info: Found device 192.168.56.101:5555\r\n> debug: Setting device id to 192.168.56.101:5555\r\n> debug: Waiting for device to be ready and to respond to shell commands (timeout = 5)\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 wait-for-device\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"echo 'ready'\"\r\n> debug: Starting logcat capture\r\n> debug: Rebuilt selendroid apk exists, doing nothing\r\n> debug: Rebuilt selendroid server already exists, no need to rebuild it with a new manifest\r\n> debug: Checking signed status of C:\\Windows\\Temp\\selendroid.com.test.app.apk\r\n> debug: Checking app cert for C:\\Windows\\Temp\\selendroid.com.test.app.apk: java -jar \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\appium-adb\\jars\\verify.jar\" \"C:\\Windows\\Temp\\selendroid.com.test.app.apk\"\r\n> debug: Checking signed status of D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\r\n> debug: Checking app cert for D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk: java -jar \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\appium-adb\\jars\\verify.jar\" \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\"\r\n> debug: App already signed.\r\n> debug: Zip-aligning C:\\Windows\\Temp\\selendroid.com.test.app.apk\r\n> debug: Checking whether zipalign is present\r\n> debug: Using zipalign from C:\\Android\\build-tools\\20.0.0\\zipalign.exe\r\n> debug: zipAlignApk: \"C:\\Android\\build-tools\\20.0.0\\zipalign.exe\" -f 4 \"C:\\Windows\\Temp\\selendroid.com.test.app.apk\" \"C:\\Users\\COLLEC~1\\AppData\\Local\\Temp\\appium115126-7472-2uiqg9.tmp\"\r\n> debug: App already signed.\r\n> debug: Zip-aligning D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\r\n> debug: Checking whether zipalign is present\r\n> debug: Using zipalign from C:\\Android\\build-tools\\20.0.0\\zipalign.exe\r\n> debug: zipAlignApk: \"C:\\Android\\build-tools\\20.0.0\\zipalign.exe\" -f 4 \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\" \"C:\\Users\\COLLEC~1\\AppData\\Local\\Temp\\appium115126-7472-1p0anbf.tmp\"\r\n> debug: Getting install status for com.test.app.selendroid\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"pm list packages -3 com.test.app.selendroid\"\r\n> debug: App is installed\r\n> debug: Rebuilt selendroid is already installed\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"getprop persist.sys.language\"\r\n> debug: Current device language: en\r\n> debug: java -jar \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\appium-adb\\jars\\strings_from_apk.jar\" \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\" \"C:\\Windows\\Temp\\com.test.app\" en\r\n> debug: No strings.xml for language 'en', getting default strings.xml\r\n> debug: java -jar \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\appium-adb\\jars\\strings_from_apk.jar\" \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\" \"C:\\Windows\\Temp\\com.test.app\"\r\n> warn: Error getting strings.xml from apk\r\n> debug: Exception in thread \"main\" brut.androlib.AndrolibException: Could not decode arsc file\r\n> \tat brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)\r\n> \tat brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:540)\r\n> \tat brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:76)\r\n> \tat brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:68)\r\n> \tat strings.StringsXML.run(StringsXML.java:84)\r\n> \tat strings.StringsXML.main(StringsXML.java:151)\r\n> Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000\r\n> \tat brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)\r\n> \tat brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)\r\n> \tat brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)\r\n> \tat brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)\r\n> \tat brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)\r\n> \t... 5 more\r\n> \r\n> debug: Not uninstalling app since server not started with --full-reset\r\n> debug: Checking app cert for D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk: java -jar \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\appium-adb\\jars\\verify.jar\" \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\"\r\n> debug: App already signed.\r\n> debug: Zip-aligning D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\r\n> debug: Checking whether zipalign is present\r\n> debug: Using zipalign from C:\\Android\\build-tools\\20.0.0\\zipalign.exe\r\n> debug: zipAlignApk: \"C:\\Android\\build-tools\\20.0.0\\zipalign.exe\" -f 4 \"D:\\Projects\\MobileTrader_a.iusko\\Main\\Source\\android\\app\\build\\outputs\\apk\\app-debug-0.1.45029.apk\" \"C:\\Users\\COLLEC~1\\AppData\\Local\\Temp\\appium115126-7472-1k9adb6.tmp\"\r\n> debug: MD5 for app is bf8306235af95df687038e3a233b37a1\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"ls /data/local/tmp/bf8306235af95df687038e3a233b37a1.apk\"\r\n> debug: Getting install status for com.test.app\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"pm list packages -3 com.test.app\"\r\n> debug: App is installed\r\n> debug: Running fast reset (stop and clear)\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"am force-stop com.test.app\"\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"pm clear com.test.app\"\r\n> debug: Forwarding system:8080 to device:8080\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 forward tcp:8080 tcp:8080\r\n> debug: Pushing settings apk to device...\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 install \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\build\\settings_apk\\settings_apk-debug.apk\"\r\n> debug: Pushing unlock helper app to device...\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 install \"D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\build\\unlock_apk\\unlock_apk-debug.apk\"\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"dumpsys window\"\r\n> debug: Writing dumpsys output to D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\.dumpsys.log\r\n> debug: Screen already unlocked, continuing.\r\n> debug: executing: \"C:\\Android\\platform-tools\\adb.exe\" -s 192.168.56.101:5555 shell \"am instrument -e main_activity 'com.test.app.login.LoginActivity' com.test.app.selendroid/io.selendroid.ServerInstrumentation\"\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Making http request with opts: {\"url\":\"http://localhost:8080/wd/hub/status\",\"method\":\"GET\"}\r\n> debug: Cleaning up appium session\r\n> info: <-- POST /wd/hub/session 500 24923.356 ms - 240 \r\n> error: Failed to start an Appium session, err was: Error: Waited 20 secs for selendroid server and it never showed up\r\n> debug: Error: Waited 20 secs for selendroid server and it never showed up\r\n>     at D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\lib\\devices\\android\\selendroid.js:289:14\r\n>     at Request._callback (D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\lib\\devices\\common.js:102:5)\r\n>     at self.callback (D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\request\\request.js:121:22)\r\n>     at Request.EventEmitter.emit (events.js:95:17)\r\n>     at ClientRequest.self.clientErrorHandler (D:\\Appium\\AppiumForWindows-1.2.0.1\\Appium\\node_modules\\appium\\node_modules\\request\\request.js:230:10)\r\n>     at ClientRequest.EventEmitter.emit (events.js:95:17)\r\n>     at Socket.socketErrorListener (http.js:1547:9)\r\n>     at Socket.EventEmitter.emit (events.js:95:17)\r\n>     at net.js:440:14\r\n>     at process._tickDomainCallback (node.js:459:13)\r\n> debug: Responding to client with error: {\"status\":33,\"value\":{\"message\":\"A new session could not be created. (Original error: Waited 20 secs for selendroid server and it never showed up)\",\"origValue\":\"Waited 20 secs for selendroid server and it never showed up\"},\"sessionId\":null}\r\n"}}