[AC-5294] Appcelerator Cannot detect Android Devices,
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2017-10-26T04:28:50.000+0000 |
| Affected Version/s | Appcelerator Studio 4.5.0 |
| Fix Version/s | n/a |
| Components | Appcelerator CLI, Studio |
| Labels | n/a |
| Reporter | ardy wongso |
| Assignee | Shak Hossain |
| Created | 2017-10-20T04:43:55.000+0000 |
| Updated | 2017-10-26T04:28:50.000+0000 |
Description
When i do "adb devices" I can see the device connected to the PC
but when i open studio, I can't see any android Device, and when I run appc run -p android -T device, I get error (_build.js:196)
{"code":"ENOTFOUND","errno":"ENOTFOUND","syscall":"getaddrinfo","hostname":"localhost","port":5037}
when I run appc info, it shows Android Devices : NONE
above issue happen after I upgrade MacOS/Xcode and suddenly after restart it happen.
anyway:
1. Android SDK also set properly
2. If I use android studio to compile app to device, it work fine
3. I have try restart, reinstall Appc, reinstall nodejs, reinstall CLI, none works
Sorry it was my issue, localhost 127.0.0.1 was removed from /etc/hosts. If someone find similar issue, go check your /etc/hosts file it takes me 1 day + to fix this, Thank's God it works!!