Chrome://inspect#devices could not find devices for USB debugging
On Android: Turn off USB debugging, then turn it on.
After confirming "allow usb debugging" popup on android, the inspect page still says: Pending authentication: please accept debugging session on the device.
Also tried changing USB config from MTP to PTP, not helpful.
From computer file explorer, the android phone is accessible.
Chrome version is 102 on both Windows 10 and Android 8.0.
Android Studio's adb can interfere with Chrome Remote Debugging so only running one at a time is advised.
Confirm that your Android device is detected by adb with adb devices. This is just to avoid problems with bad USB cables or bad USB ports.
After shutting down Android Studio, adb may still be running so you'll have to run adb kill-server to stop it.
Relaunch Chrome.
Related
a few days ago there was no problem when I used my device to run the application. but suddenly when I plug the usb into my device android studio displays no device and I try to replace another device but still not detected in android studio even though in the file explorer device is detected. I tried using the same device and same usb on another laptop and it was detected. I've tried several answers like install adb but it still didn't work
Could you tap adb deviceson your cmd and check if you see your plugged devices.
If not please check if u correctly check the developer options "Enable USB debugging" from your device.
Please check:
Developer mode is on;
USB debugging: enable;
Verify apps over USB is off;
only charging this device via USB - is off;
switch USB computer connection to PTP mode or to File Transfer mode;
ensure that you are applyed fingerprinting keys in popup window after connection new device to your computer;
your USB-cable is real Data-Cable (not only for charging);
Your ADB drivers arent compatible with your device, you need to install Universal ADB drivers or else try open google ADB drivers (Some phone companies don't support google ADB drivers).
I'm finding I need to restart my computer in order for Android to recognize that it's connected to my computer. Sleeping the computer seems to require another restart even after resetting the NVRAM.
When Android won't connect to the computer, plugging the USB cable back in doesn't help. Neither does restarting the phone, changing the USB mode in Developer Settings from "Charging" to "PTP" or the other modes. Nor does killing adb and starting it again.
Specs:
Phone
Google Pixel 2
Android 8.0.0
Computer
MacBook Pro (Retina, USB Type-A ports)
macOS 10.13.1 High Sierra
adb 1.0.39 (rev. 3db08f2c6889-android)
Cable
AmazonBasics USB 3.1 Type-A to Type-C
I have found that it was the cable. Apparently some USB cables allow only charging but not file transfer.
After trying another cable, my Android File Transfer app detected it right away and I was
You have to enable the Developer Mode and USB Debugging first. See e.g. https://www.bestusefultips.com/enable-developer-mode-on-pixel-2-pixel-2-xl/
After this you should be able to see your device with adb devices -l shell command.
Lenovo A606
Android 4.4.2
OSX El Capitan
Developer mode is on
USB debugging is on
I already added the Android Tools Directory to PATH
When running adb devices on the command line, it just returns a blank list.
How can I make my laptop recognize my phone in order to test my code on a physical device?
If you find it out, let me know lol
There are so many possibilities. In order of importance:
Drivers are not installed for your device.
Even if the drivers are not installed, your USB port may not supply enough power to the device. Try changing port.
Even if the drivers are installed your USB Cable may be buggy. Try changing it.
Your ADB process may be not synced. Try with the following commands. abd kill-server and then adb start-server.
You may be running more than one adb processes.
Try restarting Android Studio / Eclipse / ...
Try restarting your computer.
Try cleaning the computer allowed to use your device from Settings and re-connect again your device.
Did you enable the developer mode and enable depuration?
Throw your computer, with USB cable and USB device through the window. Just kidding lol.
Possibly your usb cord is just a charger? When you plug in your phone can you see your pictures? If not maybe try a different connector.
I am unable to debug over wifi.
I have followed below steps.
Go to Android Sdk-> Platform-tools and type cmd
run adb tcpip 5555
adb connect and MY IP ADDRESS
Now i got the result show in below Image.
After my device is connected. I removed my USB cable then i got device list empty.
I have no idea why this is happening.
I have motorola X play Mobile Phone Android 6.0 and having Windows 10 operating System.
Need Help.
For simple one click connection of ADB over wifi - You can try using the Android ADB Plugin from JetBrains. The plugin will internally handle all the setup and you can click-away and connect to adb over wifi without worrying about anything else. Steps to install and use can be found on its GitHub repo page.
Provides an action which allow you quickly connect your Android device
over WiFi to install, run and debug your applications without a USB
connected by pressing one button. Connect your device using a USB
cable and press the Android WiFi ADB button. Once the device be
connected over WiFi you'll see an IntelliJ/Android Studio
notification. Now you can disconnect your USB cable and enjoy
deploying, running and debugging your applications over WiFi. The
version 2.0 enables a window to check which of your devices are
connected or not and connect/disconnect it manually if needed.
Screenshots from the plugin page:
I am trying to run my android app in my samsung device GT-S6012. I use Windows 7 Home Basic. The driver is installed properly. As soon as I connect the mobile using USB cable, for some seconds "adb devices" shows my phone. But then I get a message USB connection error, windows is unable to detect the device and USB is malfunctioning.
I tried uninstalling/re-installing driver, but no luck. I tried Google on this topic but nothing solved my issue.. Can Anyone let me know how can I fix it
windows is unable to detect the device and USB is malfunctioning
Highly unlikely. Unless your USB connector in your Samsung device is broken, USB cable is dead, or USB port in your computer is not functioning. If it's not, you can enable ADB to work with your device by doing the following:
Install the Samsung Universal USB drivers for mobile devices (which I assume you have done already).
If ADB did not ACK/started. First, open a command prompt (since you use Windows) at \android-sdk\platform-tools\ directory and type adb kill-server to kill ADB. Then, type adb start-server to start ADB. Finally, type adb devices to see if ADB has recognised your devices.
See here for a list of ADB commands you can use with Android.