I'm able to connect to my phone using adb connect, and I can adb shell also.
But when I go to Run->Device Chooser, there are no devices there.
What should I do to connect my (connected) adb Android Studio?
When I plug it in through USB, it shows up on the list
Try below android studio plugin
Android WiFi ADB
HOW TO
Github Link: https://github.com/pedrovgs/AndroidWiFiADB
NOTE: Remember that your device and your computer have to be in the same WiFi connection.
Step 1: Goto your
Android sdk folder -> platform tools
and copy the whole pathFor example: C:\Program Files (x86)\Android\android-sdk\platform-tools
Step 2: Goto command prompt or Android studio terminal
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
and press enter
Step 3: Connect your device & system with same wifi.
Step 4: Type
adb tcpip 5555
and press Enter.Step 5: Type
adb connect x.x.x.x:5555
, replacing the x.x.x.x with your phone IP address.find out phone IP address
Settings -> About phone -> Status
(some phones may be vary)Note: In case that you connect more than one device, disconnect other phones except the one you need to connect.
Command prompt screen shot:
You may need to restart your adb via Android Studio (do it twice for good measure).
In Android Studio 3.0.1 > Goto > (Short cut key (Alt+Cltr+S)) Settings > Goto Plugins > Click on Browser repositories... > Search "ADB WIFI" and install the plugin. After the installation restart your android studio.
Click the icon and connect your device.
I used the following steps to successfully debug over wifi connection. I recommend this solution to everybody experiencing problems using integrated solutions like Android WiFi ADB plugin. In my case it failed to keep the Wifi connection to my device after unplugging USB. The following solution overcomes this problem.
1. Connecting device
a. Connecting device using local wlan
If you have a local wlan you can connect your android device and your pc to this wlan. Then identify the IP address of the android device by looking into its wlan settings.
b. Connecting device directly using a hotspot
I prefer to connect with a hotspot on the device. This is more private and does not open your debugging connection to the (public) wlan.
My system showed IPADDRESS
192.168.43.1
2. Create debugging connection
adb tcpip 5555
to open a port on the device for adb connection.adb connect IPADDRESS
.In my case the command looked like
adb connect 192.168.43.1
The command
adb devices -l
should now display two devices if everything is ok. For example:3. Keeping debugging connection
The tricky part comes when unplugging the USB connection. In my case both connections are closed immediately! This may not be the case for all users. For me this was the reason that I could not use Android WiFi ADB plugin for android studio. I solved the problem by manually reconnecting the Wifi after unplugging usb by
After that
adb devices -l
shows a single wifi connected device. This devices shows also up in android studio and can then be selected for debugging. When the connection is unstable you may need to repeat the above command from time to time to reactivate the connection.just open settings / plugins / search " Android wifi adb and download it and connect your mobile using usb cabble once and its done