Eclipse is not able to detect my android device even though it is connected to my computer. I had it working on my computer earlier, but my hard drive crashed so I had to reinstall/setup eclipse, and now it doesn't work. I have enabled USB debugging. I updated my USB drivers/ android devices. I tried connecting my android phone first, and then tried my tablet, but there was no change. I tried restarting the ADB server. The android project runs on the emulator, but the emulator takes so long to load and is laggy. I did a lot of research on how to fix this, but nothing is working. In my eclipse console it says, "Failed to find an AVD compatible with target 'Android 4.4W'."
if you have root, you can try to use Wireless adb via wi-fi. for this you must install from GooglePlay app like "wireless adb" run it and connect from cmd like this:
"e:\androidSDK\sdk\platform-tools\adb.exe connect 192.168.0.68:5555"
Also i recommend you to install free third-party android emulator BlueStacks, it work very fast! faster then real device connected by usb
For virtual device try Genymotion
For hardware
-first check if your device is connected - adb devices //some serial number should list. If empty, you need to install proper drivers manually.
also check in windows Device manager
Try to disable USB debugging then enabled USB debugging.
Relay! Yeah it's work.
Related
Android Studio is not recognizing any external emulators (phones) connected to it.
I have tried the following mentioned things without any success:
Installed the device driver. (It is working fine. The device recognizes my
phone.)
Turned on USB Debugging.
Kill-server and then start-server commands.
I am using Android Studio for Windows.
Probably you haven't installed the driver for your phone (if you use Windows). For instance, if you use Nexus or Pixel phones, you should install this. If you use Samsung phones, try this link.
It worked for me. If you still cannot see any of the devices, try calling 'Invalidate Caches / Restart' in the File menu in the Android Studio and restarting the system.
Hope it helps!
I had the same problem, my problem was I was using a cable that cam with the phone that acsually would not transfer any data from\to the phone, the moment I changed the cable it worked like magic.
Just try changing a cable 1st, the PC has to recognize the device even if You have no drivers, if Your phone doesnt ask You to give permission to access from PC than the cable is just a charging cable!
Hope it helps.
Set up a device for development (android documentation) :
On the device, open the Settings app, select Developer options, and
then enable USB debugging.
Set up your system to detect your device.
For Windows: Install a USB driver for Android Debug Bridge (adb). For an installation guide and links to OEM drivers, see the
Install OEM USB Drivers document.
When you connect a device running Android 4.2.2 (API level 17) or
higher to your computer, the system shows a dialog asking whether to
accept an RSA key that allows debugging through this computer. This
security mechanism protects user devices because it ensures that USB
debugging and other adb commands cannot be executed unless you're able
to unlock the device and acknowledge the dialog.
Is there any collision between Genymotion and hardware device on Android studio?? Yesterday, I tested my android phone as a debug machine on android studio. It worked perfectly. However, today, after installing genymotion and run my project on it, Android studio couldn't detect my phone....
I followed these steps :
check whether USB debugging is enabled
check sony xperia USB drive (I installed it from websites, and reinstalled it automatically after conneting my device)
reset Android device monitor
reboot my phone
reboot my computer
plug on/off usb cable
There is no collision between Genymotion and hardware devices. But Genymotion does come with its own copy of adb which introduces potential adb client/server mismatch possibility. So just delete the adb binary from the genymotion\tools folder (you may need to kill all running adb processes first) and you should be ok.
I am trying to use my Nexus 4 to run a hello world app. I'm using the Java ADT with Eclipse.
I cannot detect the device.
Nexus 4: Android 4.4.2
Java ADT: build v22.3.0-887826
Windows 7 Professional x64
Java JDK: jdk-7u51-windows-x64
ADB v1.0.31
Project build target is 4.4.2 (API 19). Minimum required version is API 8.
./adb devices shows no devices.
I am in USB debugging mode on the device. I have allowed installation of non-play-store apps.
My computer detects the phone as a media device (MTP), not as a camera (PTP).
I do not get a prompt asking me if I accept an RSA key.
Things I have tried:
Download USB drivers from here: http://developer.android.com/sdk/win-usb.html#top then:
Start > Properties > Device Manager > Portable Devices > Nexus 4 > Properties > Update Driver > Browse > {Download Folder}
I get a popup telling me that the drivers are up to date.
Changing the cable
Changing the USB port
Restarting Eclipse
Restarting the adb server (kill-server > start-server > devices)
Restarting the phone
Restarting the computer
Editing android_winusb.inf, as described here: USB driving on Android - new devices
I have tried everything I've seen on these pages:
http://developer.android.com/tools/device.html
http://androidsecurity.wordpress.com/2013/06/05/install-google-nexus-4-adb-usb-drivers-on-windows-android-studio/
Android Device Chooser -- device not showing up
How do I deploy HelloWorld app to HTC Eris Droid?
EDIT: I tried to enable ADB over wifi. So I installed ADB WiFi off the play store. It needs root permission, so I tried to root my phone using Kingo Root. Kingo Root does not work. It's giving me the message "No Device Connected!". I can transfer files from the device, and it gets detected when I plug it in, so I don't know it what capacity it "is not connected".
EDIT2: I tried to enable ADB over wifi as described here: How can I connect to Android with ADB over TCP?
adb tcpip 5555 gives me "error: device not found". Looks like inability to detect the device is a common failure mode. I suspect that fixing that will let everything else work as intended.
Android debugging via usb can be a bit hit-and-miss. I have one phone that never connects, one that rarely connects, and one that seems to work pretty much every time (I still have to do the 'unplug/replug/restart' shuffle from time to time)
I would suggest investigating WiFi ADB. If it works with your device (not all devices support it) then it'll save you a lot of time in the long term:
Install one of the various WiFi debug apps from the market
Run it and note the IP address and port it gives you
Navigate to where your android sdk platfrom tools are installed (a default Windows install should be C:\Android\sdk\platform-tools
Type adb connect [ipaddress]:[portno] (ex adb connect 192.168.1.100:5555)
If your device supports wifi debugging, it should show up in Eclipse within a couple of seconds, and you never need to do the plug in/unplug/restart shuffle again!
You don't need any third-party application. See this answer and set-up WiFi debugging with ADB.
EDIT:
You don't need root also.
Check my answer here: You should install the correct drivers its really easy by following the steps from the video
Hope that helps! :)
I'm running Windows 7, trying to connect my Android phone by USB so I can start developing in Eclipse. The phone is a Huawei Prism running Android version 2.3.6, and I've set it to USB debug mode. The phone's driver failed to install and I got the following error message:
Device driver software was not successfully installed
Android Adapter No driver found
I Googled around but couldn't find anything on this error. The Device Manager shows a yellow exclamation point.
I'm not sure if this is a device usage question or a development question. My goal is to get my phone to be available under Run As... in Eclipse.
Download and install Hi Suite. It's used for syncing Huawei devices, it'll have the driver you need.
http://www.huaweidevice.com/resource/mini/201105239635/hi_suite_en/
You must always install your specific phone USB Driver before being able to debug by USB.
So generally a " USB driver" search on Google does work.
I did it for you and found this page : http://www.huaweidevice.com/worldwide/downloadCenter.do?method=toDownloadFile&flay=software&softid=Mzk1MzA=
Is it the driver you tried ?
A more flexible way is to install the Adb Driver Installer: http://adbdriver.com/downloads/
Once you download it, enable USB debugging on your phone and plug it to your computer. Then, use the Adb Driver Installer to install the required driver. It works for any Android device! Hope this was helpful. :)
I recently found the right way to address this USB issue with Huawei.
Go to http://consumer.huawei.com/en/?method=toDownloadFile&flay=software&softid=Mzk1MzA=
Search: USB Driver
It will be the option HUAWEI Android Phones USB Driver
Make sure it is version v1[1].0 and file size 7.76 MB
Download zip, extract, proceed with usb download
Note: Make sure you debug and keep "stay awake" on before hooking up your device.
I recently purchased the MK802; Android 4.0 Mini PC. However, I am unable to install the apps I developed. I have tried using the 'adb devices' command but the device does not appear on the list. I have also downloaded the Andorid 4.0 SDK (the version used in th MK802) on my computer but still no luck. I also made sure to enable 'USB Debugging' and 'Unknown Sources' in the device settings.
I realize I can load my app from an SD card (but I would have to buy one); or that I can download my app onto the device by making it available on a server or the android marketplace but these options seem like too much effort just to install an app.
Any suggestions or recommendations would be greatly appreciated.
Simply adb over USB doesn't work (for now)
The only thing that you can do is: USE WIRELESS ADB!
This widget can help you on enabling it.
Once you got everything up and running do an
adb connect xxx.xxx.xxx.xxx
using as IP the ip address of the MK802. Once connected run an
adb shell
as usual to access the remote shell. Still the system is in heavy development (at least allwinner told so)
EDIT: Using a shorter USB cable could solve the issue!
I managed to connect mine to ADB, even using the included USB cable.
Connect you computer to the dongle's OTG port (it's marked on the dongle).
Go into settings and enabled ADB debugging.
And finally (here's the trick) enable the special Connect to PC setting.
Google for the drivers. Installing the Android SDK will not ensure that your device gets detected.
Connect device
Install drivers downloaded from internet
Disconnect & reconnect
ADB !
In all likelihood, this will solve things for you.