Android USB debugging - computer can not find phone - android

I was using Android Studio, was debugging on my phone via USB. Now the PC can not find my phone any more. The phone is charging, but the PC can't find it.
I have windows 10. USB debugging is enabled. I tried restarting both the PC and the phone. I tried lots of other things, like USBDeview, PDAnet and so on.
Any ideas what to do or how to find out what's wrong?
Thanks.
Regards,
Serban

In your terminal call "adb kill-server". It should cause a restart of adb.

Just do it that for Xamarin. And did it before for Android Studio.
You need to:
-- Install drivers for your phone and your SO.
-- Install Google USB Drivers (open Android SDK Manager).
-- Connect your phone by USB and wait until your computer recognize it.
When you will try to run or debug your app you can choice the device (virtual or physical) where you can do it.
Note: If you donĀ“t run any app before, maybe you will need to install a few API (by Android SDK Manager), for compiling the app.

This is a hack that worked for me . Once your device is connected to the PC click on the notification in your android device that says
Connected as a media device it will take you to the USB Computer connection screen and select the Connect as option as Camera(PTP).
I hope that it helps.

Related

My phone doesn't connect to PC

in the last week, I've been trying to connect my Meizu m2 phone to my computer for debugging purposes (running an app from the android studio) without any success.
I've enabled my USB debugging mode on my device, I've connected it to be on MTP rather than PTP, and I've also taken a look at my computer's device manager, and seen that the device wasn't listed under other devices category, and honestly I couldn't tell where was he listed.
In addition, I've opened an android studio and pressed the run-app button, but my phone wasn't recognized by the android studio.
Please help me fix this issue.
Follow these steps:
Try installing PdaNet+ Windows app
http://pdanet.co/a/
Install PdaNet+ Android app on your device. Download from Play Store https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Now connect your phone to PC/Laptop
Open Android Studio and check device connected or not
Hope this will be helpful...
There is many reasons and some instructions :
1- disable driver signature enforcement and connect again
2- install Universal Driver
3- install another ADB Driver

Android Studio doesn't recognize any emulators

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.

Eclipse not detecting android device

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.

Having trouble connecting Android device for Eclipse development

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.

MK802 - Android 4.0 Mini PC - not listed with 'adb devices' command - how to install my app

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.

Categories

Resources