21

I tried to play Android Studio 2.0 with my mobile without success, what I did are:

  1. In my mobile, Apps/gear icon/Settings/SYSTEM/{} Developer options/ Android debugging/, enable the Android Debug Bridge(adb) interface (set tick).
  2. 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.
  3. In my PC, run Android Studio/bin/studio.exe, "Select Deployment Target" window shows with message "No USB devices or running emulators detected"
  4. I have tried two different USB drivers but got no lucky.
  5. Perhaps I should tell Android Studio where is my USB driver? But, how? Can you help?
live-love
  • 48,840
  • 22
  • 240
  • 204
mark22
  • 243
  • 1
  • 2
  • 5

15 Answers15

19

I had the same problem too and I managed to resolve it this way.

  1. First, enable debugger mode in your android device.

  2. 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.

  3. Next, Go to http://adbdriver.com/downloads/ and download the driver installer, unzip and run it.

  4. Now go to Android Studio and you should find that everything is working fine. Chill....

Volodymyr
  • 6,393
  • 4
  • 53
  • 84
11

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

Israel
  • 111
  • 1
  • 3
  • 1
    i dont forget "Tools | Android | Enable ADB Integration" must be enabled in android studio – Israel Oct 18 '16 at 08:09
6
  1. Go to Run > Edit Configurations...

  2. Under Deployment Target Options select Show Device Chooser Dialog from the drop-down-list

See picture for reference enter image description here

Edito
  • 3,030
  • 13
  • 35
  • 67
T.S
  • 135
  • 1
  • 9
  • 1
    Thanks a lot. However, I checked every where in my Android Studio Projects and cannot see anything similar to "Run Deployment Target Options Target". – mark22 May 09 '16 at 06:57
  • I have updated the answer chk it and reply for any issue@mark22 – T.S May 09 '16 at 08:52
  • Thank you for the details. After followed all the steps: (top) menu - Run - Edit Configurations - General - Deployment Target Options - Target: - USB Device - OK I clicked the run button, unfortunately, I got the message at the left bottom: "Error running app: No target device found." – mark22 May 09 '16 at 15:31
  • try to connect phone when it is not locked and connect in USB 2 port,sometimes it won't work in USB 3 port and before that restart your AS@mark22 hopefully it will solve the problem. – T.S May 09 '16 at 17:34
5

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.

Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
4

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.

Janne Oksanen
  • 1,524
  • 1
  • 13
  • 14
3

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.)

mark22
  • 243
  • 1
  • 2
  • 5
3

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
Junaed
  • 1,457
  • 13
  • 15
3

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.

enter image description here

enter image description here

live-love
  • 48,840
  • 22
  • 240
  • 204
3

With me, when connecting the mobile to the pc, three options appeared on my mobile.

  1. Charge this phone
  2. Transfer Files
  3. Transfer Images

I thought I should select "Transfer Files", but it dd not work
But it only when works I choose "Charge this phone"

Omar Magdy
  • 2,331
  • 14
  • 13
  • 1
    I have no idea why, because I used to deploy apps in "Transfer files" all the time, but switching from "Transfer files" to any other option enabled USB debugging authorization on my device somehow, and of course now I can deploy apps on my physical device. – Ariel Sep 24 '22 at 14:32
  • @Ariel I am glad it worked. Thank you so much for letting us know! :) :D – Omar Magdy Sep 27 '22 at 14:37
2

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.

Pietrov
  • 41
  • 7
2

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".

John Ashmore
  • 1,015
  • 1
  • 10
  • 25
1

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).

Bugs
  • 4,491
  • 9
  • 32
  • 41
meyasir
  • 268
  • 3
  • 12
0

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.enter image description here

VenRen
  • 1,077
  • 2
  • 10
  • 14
  • 2
    I can't tell if this is supposed to be an answer, or another vaguely-related question. Please clarify, and if it's a question, [ask that separately](/questions/ask). – Nathan Tuggy Aug 27 '17 at 04:07
  • 1
    I believe VenRen is saying that you need to install the SDK version that matches your device. – Phil Goetz Sep 20 '17 at 21:39
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.

770grappenmaker
  • 292
  • 1
  • 7
0

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.