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.
I have tried EVERYTHING I could find on this but still no solution.
I have a Samsung s6 edge Plus 32 GB. I am trying to deploy an app on Android Studio but it always shows the device as offline. What I have tried
Unplugging and plugging back
Restarting device
Enabling debugging on device
Shuffled and tried different transfer protocols
Installing and Uninstalling Samsung drivers
Checking 'Enable ADB integration' under Tools -- Android
Checking android studio & driver updates
Any help will be greatly appreciated
This happens sometime, even when USB Debugging is on. Try this:
Go to Settings->Developer Options
Search for Revoke USB Debugging Devices
Revoke all existing devices
Disable USB Debugging and enable it
Now connect your phone to system with USB cable
Wait, and a dialog will appear on your phone, for permission to allow for USB Debugging. Click on checkbox and press Allow.
Now the device should appear online in Android Studio.
If problem still persists, then problem is with your phone drivers installed on system.
This happens to me regularly (I use multiple devices) and one of these two things always fixes it:
Make sure your device has "only charge" selected in the dropdown menu entry that appears when you connect your phone. Instead select "transfer files".
Disable and enable usb debugging.
Change your device cable or change your connection USB port on PC. I think this problem is hardware problem. Try other hardware problem possibilities.
I tried to play Android Studio 2.0 with my mobile without success, what I did are:
In my mobile, Apps/gear icon/Settings/SYSTEM/{} Developer options/ Android debugging/, enable the Android Debug Bridge(adb) interface (set tick).
After plug in my mobile to my PC with a USB cable, I found A0001 in my Computer folder. Within A0001, I can see the files in my mobile.
In my PC, run Android Studio/bin/studio.exe, "Select Deployment Target" window shows with message "No USB devices or running emulators detected"
I have tried two different USB drivers but got no lucky.
Perhaps I should tell Android Studio where is my USB driver? But, how?
Can you help?
I had the same problem too and I managed to resolve it this way.
First, enable debugger mode in your android device.
Go to Device Manager from Start Menu and try to find ADB Interface with an error symbol on it. This generally happens because windows sometimes fail to load all the mobile device drives.
Next, Go to http://adbdriver.com/downloads/ and download the driver installer, unzip and run it.
Now go to Android Studio and you should find that everything is working fine.
Chill....
same here... but I hope you can avoid this problem the same way I Did.
There is an "universal ADB Driver for all Android Devices".
Yep... sounds like magic.
Just follow this link.
https://devs-lab.com/usb-adb-drivers-for-all-android-devices.html
Fun fact there is no "Step 5" in that article so I'll give you.
you have to enable "USB Depuration" from "Developer Options" connect your cellphone to computer as a "MTP storage" , after windows detected your cellphone as a "Portable Device" Execute ADBDriverInstaller.exe (that downloaded from devs-lab)
check the device list and your cellphone will say "Driver incorrectly", select your cellphone and press install.
Step 6: Once the process is completed, you’ll see something like the image that appears there (in the link).
I hope that somebody else work this
Go to Run > Edit Configurations...
Under Deployment Target Options select Show Device Chooser
Dialog from the drop-down-list
See picture for reference
After struggling with this problem for a while, I found that there are certain cables that can only charge your phone, and even though they seem to be working, they do not allow your phone to be used as a "Media Device" and therefore Android Studio does not detect it.
Go to
Tools | Android | Enable ADB Integration
Make sure it's enabled. When I upgraded to 2.X it was for some reason disabled for me and it took me hours to find it.
I just cannot beleive why it is so difficult! let me try again and please check my steps again:
I installed Android Studio 2.0, then run Computer/OS(C:)/....../Android Studio/bin/studio.exe.
The Android Studio window appeared in my working area Computer/OS2(J:)/Users/MyAccount/Desktop/.
I connected my mobile with my computer, Cpmputer/A0001/ appeared, from it, I can see the files in my mobile.
I clicked the run icon in the Android Studio window, a "Select Deployment Target" window apeared with message "No USB devices or running emulators detected".
(I got two USB ports and tried both but got the same result.)
Finally found the solution : )
1. Install device’s required driver. (for me it was motorola device
manager)
2. Download Google Usb Driver from SDK Manager
3. Open your phone's setting->developer options and turn on USB debugging.
4. connect your device to computer
5. Go to Device Manager from Start Menu and try to find if there is ADB Interface with an error symbol on it.
5.1. If yes, then right click on the ADB interface->Update driver
software->Browse my computer for driver software-> Let me pick from
a list of device drivers on my computer->Select Motorola ADB interface
5.2. Now one confirmation will pop up in your mobile, accept it
5.3. Now you should see no error mark beside the ADB interface in your
device manager
There are 3 steps to set up your phone for debugging:
1) Change your phone to developer's mode by going to Settings, About Phone, Software Info, Android Version - tap at least 7 times on the Build Number text. You will get a message saying you are now a Developer.
2) Enable USB Debugging in Settings - Developer Options. Make sure you are not connected to your USB port to see the USB Debugging option enabled, otherwise it will be disabled.
After you plug in your USB, swipe at the top of your screen, you will see USB Debugging on.
3) Make sure USB connection is set to Photo Transfer (or MTP - Transfer photos and videos). After you plug in your USB, swipe at the top of your screen, and you will see Tap to change USB options on the menu. Tap it, and select Photo Transfer option.
Perhaps your mobile manufacturer does not provide the proper driver.
Go to Device MAnager and look for: Android Composite ADB Interface. If it's there, the driver is properly installed. If not... You and I are on the same "wagon"...
I tell you: Acer? Never again.
USB debugging somehow got turned off under developer options on my Samsung. Turned it back on and it worked, but only by clicking on "debug app" instead of on "run app".
With me, when connecting the mobile to the pc, three options appeared on my mobile.
Charge this phone
Transfer Files
Transfer Images
I thought I should select "Transfer Files", but it dd not work
But it only when works I choose "Charge this phone"
Few ways to resolve this problem.
Case 1: Install PdaNet+ in your system. (worked for me).
Case 2: Enable the USB debugging option in your mobile. Setting > developer > Check "USB Debugging".
Case 3: Change from MTP to PTP.(sometimes vise versa works).
Question is Your development sdk no mobile version android sdk Platform.
For example, my android phone system is 6.0, i need download sdk Platform 6.0.
First, try to revoke the usb sessions in the developer options, then try downloading an oem usb driver
If then doesn’t help you can try opening the device manager on windows, right click on your phone, select uninstall. This worked for me if I had the same issue.
I couldn't find my android phone or any USB device I connect to my windows laptop on the hidden icons. Well, my mouse and phone could charge but I can't seem to see my phone in the File Explorer option.
I prefer running Apps using my phone rather than emulator in Android Studio and yet I couldn't see my phone when I connect using the USB.
This helped me solve all my problems after several hours of searching for solution.
Download Universal ADB Drivers - One size fits all Windows Drivers for Android Debug Bridge
Please use this link: https://adb.clockworkmod.com/
I hope this works for you like magic!
I can see all the devices I connect using the USB cable and my mouse receiver.
I am using DELL tablet "Venue7 3740" to test my applications.Though I enabled the developer settings my device is not visible in android studio when I try to run my app and yes I also clicked "Debug model when USB is connected"
UPDATE
DELL "Venue7 and 8" has some small issues while connecting to use debugging mode.Get to this link to find solution on USB debugging.The answer was posted by lenrok258 and it works :)
DELL "Venue7 and 8" has some small issues while connecting to use debugging mode.Get to this link to find solution on USB debugging.The answer was posted by lenrok258 and it works :)
The steps to enable usb debugging are
Go to Settings and tap on the build number a couple of times to enable developer options.
Open developer options and enable usb debugging.
Plug in your device to your computer and accept this authorization popup.
Click OK and and you should be good to go.
Continue reading if your device still don't turn up on the available debugging devices.
Once your device is connected to computer, you would have a notification saying, connected as media device/mass storage device.
Tap on it and change the connection type.
You should have that authorization popup now. Accept that and Voila. :)
Note: If you're on windows, you should install your device manufacturer's adb drivers. (If you can't find them, go for universal adb drivers.)
Reference: Enabling usb debugging on android
Kingoroot for windows- simple solution to connect android mobiles with pc in USB debugging mode.
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.