Connect Android Studio to device via local network
I am using Debian 8.1, Android Studio 1.2.2 and a stocked Android TV Box with Android 4.2.2.
Now I am trying to connect my TV Box to Android Studio via LAN in order to directly test the application I am developing.
My computer and Android Box are on the same network. Also I can connect to the box in Linux console with:
adb connect 192.168.50.104
It says:
connected to 192.168.50.104:5555
I can fully open Android TV Box via adb commands on console.
But unfortunately Android Studio doesn't find the device ... When I try to compile the application, Android Studio gives me a "Chooser Dialog" where I can launch the emulator or select the running device. But "running devices" say "show nothing"
What is the problem?
UPDATE 1: This device by the way: http://www.geniatech.com/pa/atv1200.asp
UPDATE 2: On Windows it works great! Adb connect 192.168.50.104 and voila! The device is listed in Android Studio ...
source to share
Finally I found a solution to the problem.
On linux system I renamed adb which came with package manager
cd /usr/bin/
sudo mv adb backup_adb
Then I created a symbolic link to adb that is provided with the Android Studio SDK:
sudo ln -s ~/Android/Sdk/platform-tools/adb /usr/bin/adb
Restart adb and connect to your device and it finally appears in Android Studio.
Instead of renaming the adb file, you could simply delete it using your package manager.
source to share