Android Studio "No connected devices" HTC One (M7)

I know there are several such questions, but the solutions don't seem to work for me.

What I've tried / already:

  • I have enabled developer mode on the device
  • I have enabled USB Debugging and Fake Position in developer settings on the device
  • I can deploy a node cordova app without issue
  • There are no question marks in Device Manager except Android-USB / My-HTC.
  • The Google USB driver is installed, but HTC seems to depend on the driver that came with HTC Sync Manager. I installed / reinstalled / uninstalled it intact. I don't currently have HTC Sync manager, but I have HTC driver that came with it.
  • I see the device with cmd when I go to <android-sdk> \ platform-tools and type adb devices

    and adb kill-server

    and then adb start-server

    it doesn't change anything.
  • I can even see the device when you go to Tools> Android> Android-Device-Monitor in Android Studio as online
  • Run> Change-Config> Target device is set to "USB device". If I set it to "Show Select Dialog", also nothing happens when I press Run / Debug.
  • I have installed "Android 5.0.1 (API 21)" (I think it should be correct) and other stuff from Android SDK Manager. Left Android Wear and Samples to API 21.
  • I have no build errors, this is a new blank app.
  • I've always restarted Android Studio after everything I've tried.
  • I switched to a USB 2.0 port on my laptop (read somewhere that USB 3.0 can cause problems)

I read that I need to switch from MTP mode to PTP mode, but I also read that HTC removed this with some update.

I have an HTC One (M7) with Android 5.0.2 (not jailbroken or nothing) and Windows 8.1. Android Studio works since v1.2.2. I don't usually do Android development, so it can be very obvious.

No connected devices

+3


source to share


4 answers


I still don't know what the problem is, but I upgraded to Windows 10, installed Visual Studio 2015 without the Android SDK, and installed Android Studio. I opened a new project with default settings and it worked. I haven't even installed anything manually in the SDK manager.HTC One ADB works



+1


source


I just spent an hour on this issue with the same phone, but I finally did it, so this is what I did:

The Developer options

USB debugging has been enabled:



  • I disconnected the USB cable from my phone
  • I disabled and re-enabled the USB debugging option
  • Then I clicked Revoke USB debugging authorisations

    and confirmed yes
  • Then I connected the USB cable to the phone and a pop-up window that asks you to allow the connection finally appeared.
  • As soon as I confirmed this, Android Studio showed the device ...

That's all .. Hope this saves time.

+5


source


You should try using the generic ADB drivers ( https://github.com/koush/UniversalAdbDriver ). Download the installer here: http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi

0


source


I also have an HTC One (M7) with Android 5.0.2 but running on Windows 10. My current Android studio is v1.4.1. This is what I did to solve the "No connected devices" problem:

  • Uninstall all previous HTC drivers and software.
  • Download the HTC One device driver from this site: Download HTC One Windows Drivers! [M7 / M8] - Although the site claims the driver is for Windows XP, Vista, 7 and 8 (for 32-bit or 64-bit systems), it worked on my Windows 10 too!
  • Install the downloaded driver.

Now you can check your Android studio to see if your HTC device is coming. It certainly worked for mine!

Android Studio Screenshot - HTC One (M7) Detected

0


source







All Articles