Android AVD 管理器不会将我的 HTC Hero 手机检测为虚拟设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2236818/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 05:05:52  来源:igfitidea点击:

AVD manager won't detect my HTC Hero phone as Virtual Device

androideclipseemulationavd

提问by Sara

I need to use my phone as emulator/target/virtual device when I run my application. I have installed HTC Sync and the USB driver is in order. I have enabled the USB Debugging in Settings.

运行应用程序时,我需要将手机用作模拟器/目标/虚拟设备。我已经安装了 HTC Sync 并且 USB 驱动程序正常。我在设置中启用了 USB 调试。

What more do I need to do to make Eclipse AVD Manager to detect my phone? I made it work on anohher coumputer, following the exact same steps I have done now. "Suddenly" it just detected the phone. This makes no sense! argh

我还需要做什么才能让 Eclipse AVD Manager 检测到我的手机?我按照我现在所做的完全相同的步骤让它在另一台电脑上工作。“突然”它刚刚检测到电话。这毫无意义!

Help please?

请帮忙?

采纳答案by jax

When I did it I never actually installed HTC Sync.I used the AVD Manager to install the USB Driver and followed these instructions

当我这样做时,我从未真正安装过 HTC Sync。我使用 AVD 管理器安装 USB 驱动程序并按照这些说明进行操作

回答by Sara

Finally - it works! In Run Configurations -> Target -> Select "Manual" instead of "Automatic", then you have to choose device or emualtor when you run the application. And then I could choose my phone instead of the emulators.

最后 - 它有效!在运行配置 -> 目标 -> 选择“手动”而不是“自动”,然后在运行应用程序时必须选择设备或模拟器。然后我可以选择我的手机而不是模拟器。

回答by Martin Belcher - AtWrk

HTC Hero (Android 2.1)
eclipse Helios (3.6)
Windows XP SP3

HTC Hero (Android 2.1)
eclipse Helios (3.6)
Windows XP SP3

I got this working by doing the following

我通过执行以下操作得到了这个工作

  1. Make sure that your project is set to debuggable in the manifest android:debuggable="true"
  2. On the Hero make sure that it is set for remote debugging
    Menu > Settings > Applications > Development > USB Debugging
    (next three steps I got from here)
  3. Install HTC Sync (3.0)
  4. Use USBDeview to remove device
  5. Plug in device
  6. Check device is added by running "C:\Program Files\android-sdk-windows\platform-tools\adb.exe devices" which said the server was out of date and automatically killed and restarted it and showed my device as connected.
  7. Also ran this to be safe "C:\Program Files\HTC\HTC Sync 3.0\adb.exe devices"
  8. Then in eclipse click the drop down menu on the debug tool bar item > Debug Configurations... delete all the existing configurations and close
  9. The next time you debug it finds the HTC Hero and runs debug on it
  1. 确保您的项目在清单中设置为可调试 android:debuggable="true"
  2. 在 Hero 上确保它被设置为远程调试
    Menu > Settings > Applications > Development > USB Debugging
    (我从这里得到的接下来的三个步骤)
  3. 安装 HTC 同步 (3.0)
  4. 使用 USBDeview 删除设备
  5. 插入设备
  6. 通过运行“C:\Program Files\android-sdk-windows\platform-tools\adb.exe devices”来添加检查设备,该设备表示服务器已过期并自动终止并重新启动它并显示我的设备已连接。
  7. 还运行这个以确保安全“C:\Program Files\HTC\HTC Sync 3.0\adb.exe devices”
  8. 然后在 Eclipse 中点击调试工具栏项上的下拉菜单 > Debug Configurations... 删除所有现有配置并关闭
  9. 下次调试时它会找到 HTC Hero 并在其上运行调试

回答by Alex Johnson

A few tips that helped me get my Phone (Incredible 2) recognized:

一些帮助我让我的电话(Incredible 2)得到认可的提示:

  1. In Run Configurations, make sure target is set to Manual (otherwise might default to emulator)

  2. Install Phone drivers (from autoplay menu when plugged in), and HTC Sync. If 'Debugging Mode' isn't working, my phone will only be recognized by HTC sync and eclipse in 'Sync' mode.

  3. Check what version of the SDK you are running. My phone hasn't been updated to Android 4.0 yet, so I had to download a previous SDK version (2.1.3)

  1. 在运行配置中,确保目标设置为手动(否则可能默认为模拟器)

  2. 安装手机驱动程序(插入时从自动播放菜单)和 HTC 同步。如果“调试模式”不起作用,我的手机将只能在“同步”模式下被 HTC 同步和 eclipse 识别。

  3. 检查您正在运行的 SDK 版本。我的手机还没有更新到Android 4.0,所以我不得不下载以前的SDK版本(2.1.3)

回答by kdavis8

I had a simular problem but i had to enable usb debugging on my actual physical phone and it updated the drivers on windows and now it works

我有一个类似的问题,但我必须在我的实际物理手机上启用 USB 调试,它更新了 Windows 上的驱动程序,现在它可以工作了

回答by jlstrecker

I had a similar problem — USB debugging enabled, no problems with drivers, yet device not detected. I was trying to run an imported project. I created a new Android Sample Project, and was able to run that on device. After that, the imported project also ran on device.

我遇到了类似的问题——启用了 USB 调试,驱动程序没有问题,但未检测到设备。我试图运行一个导入的项目。我创建了一个新的 Android 示例项目,并且能够在设备上运行它。之后,导入的项目也在设备上运行。

回答by Maurits Rijk

Your phone is not a virtual device. Just plug it in, make sure that USB debugging is enabled on the phone and run or debug your application.

您的手机不是虚拟设备。只需将其插入,确保在手机上启用 USB 调试并运行或调试您的应用程序。

回答by David Schmitt

Even if you have installed the USB driver, there might be a lurking wrong USB registration with Windows. You can use USBDeviewto check the registered drivers and remove all entries for your phone before plugging it in, then choose the driver from the SDK when asked.

即使您已经安装了 USB 驱动程序,Windows 也可能存在潜在的错误 USB 注册。您可以使用USBDeview检查已注册的驱动程序并在插入手机之前删除手机的所有条目,然后在询问时从 SDK 中选择驱动程序。