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
ADB is normally used on Android via a USB cable. But you can also set up and use ADB wirelessly.
If you are using Android 11 click on the build version many times to activate the developer option then go to Settings>Advanced>Developer options. Scroll to debugging and turn on the "Wireless debugging" checkbox. Then open the menu debugging by touching the "Wireless debugging".
Today, in the latest release of Android Studio called Bumblebee, a new and much easier wireless debugging tool has been released into the IDE. This tool, however, currently only works for Android devices running API 11 or higher.
You can find the adb tool in /platform-tools/
cd Library/Android/sdk/platform-tools/
You can check your devices using:
./adb devices
My result:
List of devices attached XXXXXXXXX device
Set a TCP port:
./adb shell setprop service.adb.tcp.port 4444 ./adb tcpip 4444
Result message:
restarting in TCP mode port: 4444
To init a wifi connection you have to check your device IP and execute:
./adb connect 192.168.0.155:4444
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With