I'm attempting to transition from Eclipse to Android Studio today. I generated the Gradle build files in Eclipse and imported into Android Studio. I changed my preferences to run the app from a USB device instead of the emulator. Now when I run my app with my phone plugged in, all I get is a message that says "Waiting for device."
Has anyone else tried out Android Studio and got an app running on their phone? I'd appreciate any advice. I've been trying for quite a while now.
I started getting this message after I had disabled the "Media device (MTP)" and "Camera (PTP)" option in the "USB computer connection" option found in Settings > Storage > USB computer connection. Re-enabling one of either MTP or PTP fixed the issue for me.
This is to do with the RSA security authentication that happens between your PC and mobile. When you connect your mobile device with USB debugging enabled, you must be getting a popup to authorize the computer to use USB debugging on your device. Just check "Always allow" and things should work smoothly.
Actual problem is when you connect your device to your PC the first time after enabling the USB debugging, the popup for RSA authentication just disappears after a while. So all you have to do is, disconnect and reconnect the mobile device and set the authorization on popup.
this also help me some times :
and phone or emulator is reconnected to adb
I have
LG G3
connected to Android Studio and gotUSB device not found
.I fixed this problem doing the following steps:
Enable Developer option
In there, check
USB debugging
andAllow mock locations
Go into
Tethering & Networks
and put USB tethering ON. Bluetooth didn't work for me.Finally, run debug in Android Studio
I get this from time to time and a simple unplug/replug of the device does the trick.
I had same problem and I was able fix that problem.
My error was:
This happens when I was using SONY XPERIA Tipo Dual and Samsung Galaxy Core Duos i8262.
I solved problem in both devices.
SONY XPERIA Tipo Dual
Install "SONY PC Companion" which is automatically detect your driver.
Run your app again. You can see your app is running in your device.
Samsung Galaxy Core Duos i8262
Install USB drive. You can find it here. Direct Url to download
Run your app again. You can see that still you are getting same error. Go to notification section. You can see that, phone is connected as a media device(Media device(MTP)). You need to change it as "Camera (PTP)" by touching notification.
Run your app again. Wow. It works...