AndroidWiFiADB icon indicating copy to clipboard operation
AndroidWiFiADB copied to clipboard

AndroidWiFiADB connects to device, but it isn't displayed as deployment target

Open RomiValladares opened this issue 7 years ago • 9 comments

Hi. I've successfully used the plugin before, but after updating Android Studio it doesn't work anymore.

Android Wifi ADB version: 2.4 Android Studio version: 2.3.3 JRE: 1.8.0

Steps

  1. Check that both computer and device are connected to the same Wi-Fi.
  2. Connect device via USB; Android Studio recognizes it.
  3. Connect with Android WiFi ADB, disconnect USB.
  4. Try to run the app; the device isn't shown on the deployment targets dialog.
  5. Disconnect from Android WiFi ADB; an error is shown: 'Unable to disconnect device, make sure that your computer and your device are connected to the same network'.

I've uploaded a video showing the steps.

RomiValladares avatar Jun 27 '17 17:06 RomiValladares

happened to me too as a workaround until this gets fixed, try this workaround:

phone: enable ADB over network in developer options, take note of the ip (default port 5555)

android studio (windows): then go to terminal tab of android studio and navigate to your adb folder (by default, its in this path): C:\Users*your_username**\AppData\Local\Android\sdk\platform-tools

once there, simply issue this command adb.exe connect

for a different android studio platform, just go to terminal and issue the adb connect command

SykesMod avatar Jun 30 '17 06:06 SykesMod

Thanks! It didn't work though. Maybe it wasn't a problem with the AndroidWiFiADB, and there's something else going on, even though I have the Mac and the device connected to the same WiFi. screen shot 2017-07-03 at 10 35 46 pm

RomiValladares avatar Jul 04 '17 01:07 RomiValladares

try disabling AndroidWifiADB plugin and issuing commands again

SykesMod avatar Jul 04 '17 01:07 SykesMod

Hi @SykesMod thanks for reporting! I can't reproduce this bug using the same Android Studio version in my computer 😥 It seems you can easily reproduce it! It could be great if you debug the bug and send a PR I tried installing different Android Studio version and using different devices but the plugin seems to be working as expected 😢

pedrovgs avatar Aug 05 '17 08:08 pedrovgs

Getting this same issue in Android Studio 3.0.1 stable version.

RohitK1992 avatar Nov 27 '17 08:11 RohitK1992

Yes On my mac it shows connected but dont show up "Select Deployment Target" window!

kailash09dabhi avatar Dec 06 '17 08:12 kailash09dabhi

Same on my mac, android studio 3.0.1

Tokimu avatar Dec 07 '17 01:12 Tokimu

Same on my linuxmint , android studio 3.0.1

piyan13 avatar Feb 20 '18 09:02 piyan13

I think the problem is with the port. I found a way from this link. If it might help. Open cmd and write $ adb devices , that will show you the list of connected devices. your device must be connected via a usb cable. $ adb tcpip 5555 , write it in the cli and it will restart port: 5555. $ adb connect 192.168.0.102:5555

guitorioadar avatar May 12 '19 06:05 guitorioadar