简体   繁体   English

HTC One M8在Android Studio上运行

[英]HTC One M8 running on Android Studio

Is anyone using a HTC One M8 device on Android Studio ? 有没有人在Android Studio上使用HTC One M8设备? My problem is that the IDE is not recognising it. 我的问题是IDE没有识别它。

I killed the AVD, restarted the IDE a few times, plugged-out and plugged-in the device, but It still being not recognised. 我杀了AVD,重启了IDE几次,拔出并插入设备,但它仍然无法识别。

The requirements to make the HTC One M8 to work with Android Studio are: 使HTC One M8与Android Studio兼容的要求是:

  • Install HTC Sync Manager 安装HTC Sync Manager

  • Enable the USB debugging made the Android Studio to recognise the device. 启用USB调试使Android Studio能够识别设备。 This article tells how to enable Developer Option in Settings , cause it comes hidden by default. 文章介绍如何启用设置 选项开发 ,因为它自带默认隐藏。

Here are the steps that worked for me, on Windows 8.1 , using HTC One M8 : 以下是使用HTC One M8Windows 8.1上运行的步骤:

Follow Android Studio's documentation here , for your relevant OS and phone. 关注Android Studio的文档 ,以获取相关的操作系统和手机。

If for some reason that link breaks, here's the steps: 如果由于某种原因链接断开,这里是步骤:

  1. Allow USB debugging on your phone, in the Developer Options (tap your software build number 7 times if you don't see Developer Options in phone's Settings) 在开发者选项中允许手机上的USB调试(如果在手机的设置中没有看到开发者选项,请点击软件内部版本号7次)

  2. Include this snippet in your gradle.build : gradle.build包含此代码段:

    android { buildTypes { debug { debuggable true } ... } ... }

For many, the above steps are all you need. 对于许多人来说,上述步骤就是您所需要的。 But, on Windows, I still had issues with HTC driver. 但是,在Windows上,我仍然遇到HTC驱动程序的问题。

To fix this you must install HTC Sync Manager onto your PC, which also installs the proper driver. 要解决此问题,您必须在您的PC上安装HTC Sync Manager ,它还会安装正确的驱动程序。 Link is here. 链接在这里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM