{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium-adb/issues/150","repository_url":"https://api.github.com/repos/appium/appium-adb","labels_url":"https://api.github.com/repos/appium/appium-adb/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium-adb/issues/150/comments","events_url":"https://api.github.com/repos/appium/appium-adb/issues/150/events","html_url":"https://github.com/appium/appium-adb/issues/150","id":146666862,"number":150,"title":"Can no longer connect to Android Emulator with Android SDK Tools 25.1.1","user":{"login":"garyjohnson","id":1094704,"avatar_url":"https://avatars.githubusercontent.com/u/1094704?v=3","gravatar_id":"","url":"https://api.github.com/users/garyjohnson","html_url":"https://github.com/garyjohnson","followers_url":"https://api.github.com/users/garyjohnson/followers","following_url":"https://api.github.com/users/garyjohnson/following{/other_user}","gists_url":"https://api.github.com/users/garyjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/garyjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyjohnson/subscriptions","organizations_url":"https://api.github.com/users/garyjohnson/orgs","repos_url":"https://api.github.com/users/garyjohnson/repos","events_url":"https://api.github.com/users/garyjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/garyjohnson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-04-07T15:52:49Z","updated_at":"2016-05-04T20:32:52Z","closed_at":"2016-04-08T14:11:16Z","body":"Just got appium up and running yesterday on an Android project. Updated the tools this morning (and nothing else), then noticed that appium started raising errors when attempting to talk to the android emulator.\r\n\r\nBehavior: When appium driver is started, the configured AVD emulator will start, but then appium will fail to communicate with it and raise an exception. On a second run, it will fail to see the running emulator and start another instance, then fail again for the same issue.\r\n\r\nFull appium log: https://gist.github.com/garyjohnson/7690fa79a1aeb1ee9f26cbb5082d8868\r\n\r\nDetails: appium-adb appears to fail specifically when running `avd name` over telnet connection. One thing I noticed is that it looks like there is loopback data on the telnet connection (i.e., you can see \"avd name\" returned in the telnet data along with the emulator name), but unsure if this is how it behaved previously:\r\n\r\n```\r\n[debug] [ADB] Sending telnet command to device: avd name\r\n[debug] [ADB] Getting running emulator port\r\n[debug] [ADB] Socket connection to device created\r\n[debug] [ADB] Socket connection to device ready\r\n[debug] [ADB] Telnet command got response: a\u001B[K\u001B[Dav\u001B[K\u001B[D\u001B[Davd\u001B[K\u001B[D\u001B[D\u001B[Davd \u001B[K\u001B[D\u001B[D\u001B[D\u001B[Davd n\u001B[K\u001B[D\u001B[D\u001B[D\u001B[D\u001B[Davd na\u001B[K\u001B[D\u001B[D\u001B[D\u001B[D\u001B[D\u001B[Davd nam\u001B[K\u001B[D\u001B[D\u001B[D\u001B[D\u001B[D\u001B[D\u001B[Davd name\u001B[K\r\nTesting\r\n[debug] [ADB] Emulator Testing not running\r\n```\r\n\r\nRunning Appium 1.5.1, NPM 3.3.12, OSX El Capitan 10.11.4, Node 5.4.0, Android SDK Tools 25.1.1, Android SDK Build-Tools 23.0.2\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium-adb/issues/comments/216993995","html_url":"https://github.com/appium/appium-adb/issues/150#issuecomment-216993995","issue_url":"https://api.github.com/repos/appium/appium-adb/issues/150","id":216993995,"user":{"login":"dduphorn","id":17556131,"avatar_url":"https://avatars.githubusercontent.com/u/17556131?v=3","gravatar_id":"","url":"https://api.github.com/users/dduphorn","html_url":"https://github.com/dduphorn","followers_url":"https://api.github.com/users/dduphorn/followers","following_url":"https://api.github.com/users/dduphorn/following{/other_user}","gists_url":"https://api.github.com/users/dduphorn/gists{/gist_id}","starred_url":"https://api.github.com/users/dduphorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dduphorn/subscriptions","organizations_url":"https://api.github.com/users/dduphorn/orgs","repos_url":"https://api.github.com/users/dduphorn/repos","events_url":"https://api.github.com/users/dduphorn/events{/privacy}","received_events_url":"https://api.github.com/users/dduphorn/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T20:32:52Z","updated_at":"2016-05-04T20:32:52Z","body":"I got it working when I run from the GUI on Mac.  I'm trying to programmatically start the appium server.  I've updated my Arguments to include build/lib/main.js.\r\n\r\nCommandLine command = new CommandLine(\"/Applications/Appium.app/Contents/Resources/node/bin/node\");\r\n\t\tcommand.addArgument(\"build/lib/main.js\",false);\r\n\t\tcommand.addArgument(\"--address\", false);\r\n\t\tcommand.addArgument(\"127.0.0.1\");\r\n\t\tcommand.addArgument(\"--port\", false);\r\n\t\tcommand.addArgument(\"4723\");\r\n\r\nThe error I get is: \r\n\r\nmodule.js:341\r\n    throw err;\r\n    ^\r\n\r\nError: Cannot find module '/Users/darinduphorn/git/TestAutomation/TestAutomation/build/lib/main.js'\r\n    at Function.Module._resolveFilename (module.js:339:15)\r\n    at Function.Module._load (module.js:290:25)\r\n    at Function.Module.runMain (module.js:447:10)\r\n    at startup (node.js:146:18)\r\n    at node.js:404:3\r\n\r\nSo I'm wondering where build/lib/main.js is located so I can start Appium server programmatically.\r\n\r\nThanks"}}