I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide.
Things are working up to 6. Make sure that Discover USB devices is enabled., but then in point 7. Connect your Android device directly to your development machine using a USB cable., the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8.
The device has USB Debugging enabled, and Windows recognises the device.
I'm able to connect to the device using Android Studio, and then use Chrome remote debugging. But it looks like overkill to install several GigaBytes just to be able to clic ont the Allow USB Debugging permission prompt on the device.
What can I do to launch remote debugging without installing Android Studio ?
If you turn on Developer options on your Android device, you should be able to toggle USB Debugging from there. Download the standalone ADB package or install Android Studio. Run adb server in the command line. Connect it and then the prompt to accept the device's RSA key fingerprint should appear and you should be good to go.
The docs do a better job of showing the step-by-step process https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
P.S. if you'd like to test this multiple times on the same two devices you can click Revoke USB debugging authorizations in the Developer options to revoke all previously connected devices' RSA keys.
For those landing here from Google: my problem was a bad cable shipped with the device (Samsung Galaxy A03). It only charged but did not transfer data. I bought a decent third-party cable and it started working.
Related
I am using Windows 10 with Android Studio's latest version.
I have configured my LG device to be in developer mode (clicked 7 times on the build number and got message that I am in developer mode).
When I try to debug my app on the LG device, I get popup that tells me that there is "No connected device".
What could be the reason for that?
I can see the device on My Computer as a media device.
In addition to being a developer, you must also enable debugging. Try going into Developer Options and turning on USB Debugging.
You just enabled Developer Options. You need to enable USB Debugging.
Go to Your phone's Settings then go to Developer options and enable USB debugging there.
Also sometimes if you connect a new device to your pc it will install some built-in drivers for the device. So make sure you allow that process to be finished.
Still if the problem persists try another port of your computer.
P.S. For first time connection your phone will ask you to allow debugging permission from pc.
When I tried to run the app, I don't see the phone listed on the connected devices list at all. I have connected the Samsung S3 GT-I9300, which is rooted using Kingo ROOT app downloaded from Google Play Store. I also have turned on developer options and the USB debugging. Still, nothing seems to work. I searched online and tried finding computer management to search for the phone listed under device manager. However, there's no mention of portable devices or other devices. Nevertheless, the phone is able to be charged. Is the problem caused by the USB cable? If so, which type of USB cable should I buy?
Try install ADB driver from here
and you can read manual here
I am just beginner for android. And I just create'Hello World' app for initiate in Android Studio. But I am not able to run this on my mobile device. When I connecting this to device, it's connected but showing an error message "No USB device or running emulators detected".
I did everything what I can but no luck.
Sometimes it helps to switch the USB connection to one of the other modes available. (See your notification bar on the left when your phone is connected to your PC.)
You will need to enable developer options on your phone -
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Android Studio 2.1.1: "no usb devices or running emulators detected"
Have you tried to kill and restart adb server through terminal. Also there might be a case that usb driver are not installed.
You just have to follow few steps:
Install PDA Net on your PC.
http://pdanet.co/
Make sure your USB cable is in properly working condition.
Make sure USB debugging is "ON" on your Android Device.
Now when you will connect your phone with PC, it will automatically install some drivers. Let it install. When PC is done with driver installation, it will show a pop-up on your phone. You have to allow your PC your access your phone through that pop-up on your phone.
Try it, I hope it will work!
I am trying to run and debug android project using hardware device. I have Huawei P8 Lite and whenever i enable developer mode and usb debugging from my phone, it shows the message that usb device not recognized. It happens just when i enable usb mood on developer options, otherwise its working fine if i want to transfer files between computer and phone.
I followed all these articles
http://developer.android.com/tools/device.html
http://developer.android.com/tools/extras/oem-usb.html
and also tried to update the driver software but computer shows that driver is updated.
IN device manager, under options universal serial bus controller, the usb port have yellow notification mark on it with the label that unknown device.
Please help. Emulator is killing me. Its very slow even after installing HAXM.
Hi those instructions are for the google usb driver. To install the huawei adb driver and lte software, on your device (settings):
Enable Developer Mode.
Enable USB Debugging.
Connect your device via a usb cable.
You have to go to Computer -> double click on HiSuite
Accept terms and click install. This should take about 30 seconds, after which you click start.
Automatically, all drivers are installed as below.
The instructions are available on http://consumer.huawei.com/en/support/faqs/detail/index.htm?id=6630
My breakdown according to my device (and country) and the link above are slightly different but the logic is the same. All the best!
I'm relatively new to Android development, but I am having some issues with debugging on a new device I am working with.
Previously, I was using a Samsung Nexus S (Google development phone) running Android 4.0.4. When I plug in the USB, I get two notifications: USB connected, and USB debugging connected. When connected, Eclipse will prompt me to select the device I want to debug with, and I get tons of useful info in my LogCat window.
I recently started using a Samsung Galaxy S4, running Android 4.2.2. I have installed the USB driver from Samsung, but when I plug in the USB, I now only get a single notification: Connected as a media device. Now when I am running my app through Eclipse, it doesn't prompt me to select a device, and I get almost nothing in my LogCat window.
Can anyone instruct me on what I need to install or configure to get Eclipse to prompt me for the device, and give more detailed logging while debugging? USB debugging is enabled on the phone, in the Developer Options menu.
a) Have you turned on your Samsung S4 debugging mode
To activate the USB debugging:
From idle mode > tap on Menu > Settings > Applications > Development
Check "USB debugging"
b) Have you installed the necessary drivers for Debugging in Eclipse they are not the usual USB Drivers. Have a search on google you will find it
c) After installing reconnect you machine you will that it will mention on your device. Connected for debugging. And you LogCat will start populating
First, you need to set your phone into developer mode by clicking 7 times on Build version. Once this is done, you can check adb devices to see online devices connected to your machine. If you see your device, then you are good to go.
This link might help.
I had a similar issue with a tablet and a similar program. I found that if you forced the usb-sharing program to quit by using teh applications manager then eclipse would then find the phone. it is by no means a long term solution but at least you get to see the logcat.