My Huawei P8 lite smartphone is not appearing in Android Studio on Windows 10. Although internal memory of mobile is appearing and file transfer is possible. Here's things I have tried.
1) Connected my phone to other laptops. It's working fine.
2) Connected other phones to my laptop. They are working fine.
3) Tried multiple data cables.
4) Updated all my drivers using Driver Booster.
5) Installed the latest version of Android Studio.
6) Updated my Windows.
7) Reset my Phone to Factory Defaults.
7) Manually installed ADB and USB drivers for Huawei.
8) Tried to update my USB driver in Device Manager but doesn't get updated that way.
My device is a Huawei Nova 2i phone and I had to face some difficulties to get it listed under available devices. USB debug option was getting disabled automatically and I had to follow below mentioned steps to fix it.
First connect the android device via usb cable and enable the "transfer files" option.
After that enable USB debug in developer option menu.
After the above configurations, my device was listed in target devices.
I suggest you download HiSuite, which is an official management tool.
After connecting device with PC, check "Transfer files" option.
you could enter this setting via swiping down notifications.
I had this problem with my Huawei P9. Then I realized that on device manager, my phone was using the incorrect driver. After I picked the MTP USB DRIVER, it worked.
If you can't connect Huawei phones to Android Studio, You can give it a try.
Follow these simple steps:
First you need to turn on Developer mode. To turn on developer mode go to Settings-> About phone -> click Build number 7 times .You will see a message "You are now a developer".
Next Steps: Find your Developer option. It Should be in System & update -> Developer Options
Turn on USB debugging
Select USB configuration -> Choose Media Transfer Protocol(MTP)
Then you might see a alert about "Allow USB debugging" Click OK.
You are good to go. If these steps doesn't help you, please change your cable.
I am new to android development and am trying to run a test app on my android phone. But it will not detect my device when I click "run". I have tried to go through the OEM USB driver installation but it always says "Windows has determined that the best driver for this device is already installed. There may be better drivers on Windows Update or on the device manufacturer's website." When I unclick "Include subfolders" it says "The location you specified does not contain any driver package (.INF) files." I have tried other methods through device manager of installing OEM USB driver software, both selecting the directory C:\Users\My name\AppData\Local\Android\Sdk\extras\google\usb_driver and the one where I installed the samsung usb driver. I have been attempting to follow this link: https://developer.android.com/studio/run/oem-usb which is where android studio sent me.
Lets try the most obvious one. Have you enabled usb debugging on your phone yet? When I was starting android this has happened to me. If not enable it through your phone's Settings> Developer Options> Usb Debugging.
If the Developer options is not yet shown, tap the Build Number seven times to show it.
Build number is mostly found on About> Software Information.
You need to enable USB debugging in your device too, refer this link for process https://developer.android.com/studio/debug/dev-options
Here is the problem. I want to run my Android Studio apps on my device (Samsung Galaxy Ace 2). But nothing works for me. Tell me what I've missed:
1) USB debugging is on
2) ADB driver is installed (in device manager i can see Android Composite ADB Interface)
3) ADB device list is still clear, even if i reset server(adb kill-server, adb start-server, adb devices - list of devices is clear)
4) in google usb driver directory, in android_winusb.inf file I added my device identificators
5) Android device manager still cannot connect to my device, showing this error when I reset it: "adb connection error an existing connection was forcibly closed by the remote host"
So I will be glad to hear any advices. Hope you'll help me
Did you try to configure the "Media Mode" in "Camera (PTP)" instead of "Media device (MTP)"? This is sometimes solving the issue. Its in the USB Computer Connection options of your Android device, you should see an "authorize" dialog then.
Update 04/2017: looks like it has been fixed in Android 7.1.2
I have done numerous ways of handling that issue. Finally it has worked! I am using LG Optimus II, but I believe the following steps are generic to other Android devices as well.
Step 1:
Make sure your device is enabled for development. If yes, go to Step 2, otherwise go to Settings > About phone and tap Build number seven times which is magic number :-).
Now Developer Options is available in the Settings.
Step 2:
Before you plug your device to PC, Go to Settings > Developer Options and select USB Connection method.
Step 3:
Plug the phone to the PC, you are given options for the USB Connection method, and please select Internet connection. Make sure you have connected to the Internet. By the way, I have changed MTP to PTP, it did not work for me. Therefore, I tried Internet connection mode, then it worked.
Step 4:
Run the app in the Android Studio, it will ask you to authorize the device for development, and select YES!.
Step 5:
Run the application via Android Studio and choose the device, not emulator, and BINGO! Welcome to Android development board.
Try swapping the USB port the cable is plugged into.
Sounds crazy but after 20 minutes of debugging this worked for me.
I also tried above solutions but got no luck. So here's what I did:
Download and install PdaNet+ to fix connection issues between my computer and android device
Enable USB debugging on my android device
Unplug the phone and plug it again after it's installed
Run my app and voila! My android device is now recognized by Android Studio
Although my computer could recognise my phone, I had to install the official drivers from the Samsung developer site to get adb/Android Studio to recognise it:
Samsung Android USB Driver for Windows
Click Revoke USB debugging authorization in Developer option and try it again.
Solution for those working with Huawei phones - You will get this error when ADB interface is not installed. Check if you have installed Huawei HiSuite. USB driver gets installed when you install HiSuite (I suppose this is true for most of the new phones that come with a Sync Software). If the ADB interface is installed on your computer you should see 'Android Composite ADB Interface' under Android Phone in your Device Manager as shown in this picture.
If you have Mi Device than you need to enable this two option after enabling Developer Mode.
USB Debugging (Enable = True)
Install via USB (Enable = True)
See this screenshot.
LG Optimus Zone 2 pp415 d\n connect in mtp, but does work in internet connection mode. Lost lots of time messing with it. There's no doc for this, but I'd suggest trying all 4 of the connection options. Only 1 that works for me is Internet Connection->Ethernet, then win 8 auto-detects a driver and installs it. In MTP mode despite all drivers being registered with device manager, adb doesn't pick it up.
I had the same problem. So here is what i did
reinstalled the device driver
changed the USB computer connection from MTP to Mass storage(UMS)
And it worked.
For me, I tried the above. Turns out my USB cable was bad. I changed the cable and then it worked.
I am sorry that i bothered you all. The problem was my device is cloned in different places in device manager. It was gone when I tried to update driver for my phone in "Other devices" list, and before i have been updating it in wrong sections. Thank you all.
In my case it was due to already running and hanged adb.exe on another user under my PC. I had two users on my PC, the second user had the adb.exe process hanged even when I tried to end the process. It worked with me after (End Process Tree) from the Task Manager.
Hope this will help someone with multiple users :)
Ahmad
In addition to the above configurations, I had to set deployment target to "Open Select Deployment Target Dialog", run once (choosing my device from the options listed), and from then on Android Studio was able to see my device even after changing the deployment setting back to "USB Device". My SWAG is that since Android Studio uses its own internal cache to find your device, it has to be initialized first.
I was on Samsung S8 and had same problem too. After I installed Samsung Kies, issues was resolved for me, as I believe it had updated the correct driver required for my Samsung S8.
On Windows 7 , the only thing that worked for me is this. Go to Device Manager -> Under Android Phone -> Right Click and select 'enable'
i had to install android studio in 2 machines and ive solved this problem intalling samnsung kies, i use 3 diferents samnsung devices (plus some other of my family and friends) and i dont have to strugle with the drivers, it works for me and i recomend it. hope it helps
For me, this ended up being because I had the wrong SDK level installed (new version of Android Studio installed the SDK for Android 10, whereas I have a device that runs only Android 8.1). While Android Studio would "recognize" the device and display a string in the "devices" menu instead of just saying that no device was connected, installing the right SDK level for my device ended up changing the string to something recognizable (my device's model name) and allowed me to actually run my app over ADB.
I had a big problem with my Samsung S10 Plus as it was not detecded by Android Studio on my Macbook even if I did all what is required to be detected, that is to say:
Enable developer mode (7 taps on Build version in Android settings)
Enable USB debugging
What I did is to start "Android File Transfer" on my Macbook and the magic happened. A popup appeared on my device asking if I want to authorize an USB access to it. I clicked "Yes, always" and now Android Studio can detect my device on my Mac :)
Change the connection method Build-In CD ROM it works for me
On HTC mini one 2, besides enabling the Developer Options, the following worked for me:
Go to More in Wireless & Networks
Mobile Network Sharing
In USB network setting
Select Internet pass-through
please help me how to debug my android application in moto g dvice in windows platform.In my app am getting problem in running service in background.
Go to the settings of your device and check for Development Tools or Developer Options.If its not available then go to About Device there tap 7 times on Build Number you will see Developer Options in your Settings Menu.Click on it and enable Debugging option.
In your Eclipse,right click on the your project,select Run as>>Run Configurations>>Target>>select Always prompt Device.
Now Whenever you will run your application it will show options,select your device.
Hope it helps you .All the best :)
In addition to the above solution you need to do this to:
The Android development guide (http://developer.android.com/tools/device.html) says that USB drivers are required for debugging on a device connected by USB.
You can install the USB driver by going to https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth
After installing the driver you can see the device in the Devices section of your IDE.
We can debug android application by following below steps
Enable USB debugging in developer options(if you are not able to see developer option then go to settings -> About Phone and press more than 5 times on build number then developer option will be enabled)
Install ADT plugin in eclipse
Connect your phone via USB cable
In eclipse change to DDMS perpective mode and there you can see Logcat panel and where we can live phone logging
I am trying to test an Android application through the Eclipse plugin on a real device. It is a Samsung Infuse 4G. I believe I have followed all steps on the Android page for testing on devices.
First of all, I cannot figure out what the Android OS version is because it does not show up in the settings. I can see that the firmware version is 2.2.1, so I assume I am running that version of Android OS as well.
Next, when I connect the device to my computer (running Vista, 64 bit), I get prompted with three options: Kies (firmware update), Media player, and Mass storage. When I look on the Internet, I see that I am supposed to select "Charge only", but this does not appear in the options with which I am prompted. I have already set USB Debugging to true through Settings > Applications > Development.
Third, I have installed the correct driver from the Samsung site based on my model number (SGH-I997), yet when I do adb devices from my platform-tools directory (I have tried adb kill-server and adb start-server), I still do not get my device listed.
I am not very advanced in terms of working with Android and have been banging my head against the wall on how to solve this problem, so any and all help guiding me through this would be appreciated.
Thanks!
Try installing this PC Suite ...Samsung Kies http://www.samsung.com/in/support/usefulsoftware/KIES/JSP this would help you to get the exact driver for the device and don't forget to check USB Debugging option in settings.
You also need to mark "Allow Mock Locations "in Development Options in Applications settings of your phone.
Also try enabling ,use as mass storage after connecting your device.
You can check if your device is detected in device tab of DDMS in Eclipse.
Even trying all such things ,it does not work try connecting your device 2 or 3 times ,restarting eclipse and enabling USB Debugging and mock locations again