I am trying to develop an app and test it on my android device, however my computer can't seem to find the device. On the phone developer mode is unlocked, usb debug is enabled, and usb configuration is set to MTP (Media Transfer Protocol). I have android studio installed on my mac and with the device plugged in running adb devices returns that there are not devices attached???
Related
I've been trying to deploy Android app on MAC virtual machine but it does not recognise Android device via USB port or wifi (using Android ADB wifi plugin). Below are what I've been trying to do:
Shutdown guest OS
Plug in the device and let host OS grab it
Enable USB controller from virtualbox menu Machine-->settings-->usb enable usb controller and enable USB 1.1 (the other options are not valid).
Turn on USB Debugging option
Start guest OS
However, the device has always been in 'offline' state. Any suggestion please?
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.
I have a htc device on android 4.1.1. I have installed htc drivers, but the device is not listed as plugged into a usb. The device starts charging when plugged into usb - the cable is fine. What else could be causing this issue?
If you are on windows try installing the android universal USB driver
If you are on MacOS you need android file transfer
If this doesn't work try changing USB port and make sure that your device is conected as Mass Storage.
I recently bought a phone Coolpad Note 3 Lite and enabled USB Debugging on my phone. When I run the application on Android Studio on Ubuntu it can recognise my device as you can see in this picture:
But once the gradle build is completed then the application doesn't run on my phone and "Run" window looks like this:
Previously I used a Motorola Device and usb Debugging worked flawlessly but with new device USB Debugging isn't working.
I work with a Ubuntu Installed laptop
Have you enabled USB tethering? You may need to restart your Android Studio or machine once you do.
I have purchased an lg optimus zone 2 to develop on and I have removed all of the drivers for the phone on my windows 7 machine. I downloaded the OEM driver from LG and disconnected my network. After installing the OEM driver I connected my device to my computer ( and I have already enabled developer mode on my device and selected USB debugging), but when I run adb devices it says that no devices are connected. Clearly it is installed on my machine because it compmgmt.msc it says that it found the LG Android MTP, and on the device itself it asks me for internet connection/ mtp/ camera or just charging mode. ( I always select the MTP mode). I for the life of me can't figure out why it won't connect (I'm trying to test an app locally on the machine), maybe I should stick to iPhone development :-(.