Android 设备选择器 -- 设备未显示 [英] Android Device Chooser -- device not showing up

查看:33
本文介绍了Android 设备选择器 -- 设备未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Eclipse + ADT,我的物理设备(如下所列)未在 Android 设备选择器中列出.我已经更新了 Eclipse 和所有的 Android 包.我的手机运行的是 Android OS 1.6,它对应于 Eclipse 项目中列出的目标版本.

I'm using Eclipse + ADT, and my physical device (listed below) is unlisted on Android Device Chooser. I have updated Eclipse and all of the Android packages. My phone is running Android OS 1.6, which corresponds to the target version listed in the Eclipse Project.

此外,我决定尝试在真实设备上进行测试的原因是,当我运行我的项目时,模拟器似乎不再正常工作了.模拟器启动,但程序永远不会启动.有什么想法吗?

Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The emulator launches, but the program never does. Any ideas?

(使用 windows 7/t-mobile mytouch 3g)

(using windows 7/t-mobile mytouch 3g)

推荐答案

首先,确保 Android ADB 可以与您的设备对话".

First, make sure that the Android ADB can "talk to" your device.

  • 打开 Windows 命令提示符 (cmd.exe)/Mac 终端.
  • 转到 ADB.exe 所在的文件夹(通过 cd),例如 C:Androidandroid-sdkplatform-tools.
  • 输入adb devices
  • Open a Windows Command Prompt (cmd.exe)/Mac Terminal.
  • Go to the folder (via cd) where ADB.exe is in, e.g, C:Androidandroid-sdkplatform-tools.
  • Type adb devices

如果您的设备已列出(显示序列号),请进行第二次检查.否则,这意味着 ADB 当前无法与您的设备通话.导致问题的原因有很多,请尝试:

If your device is listed (serial number is displayed), go to the second check. Otherwise, this means ADB currently can't talk to your device. There're many reasons which can cause the problem, try:

  • 在您的设备中,在设置 -> 应用程序 -> 开发中打开USB 调试模式".
  • 在您的设备中,在设置"->应用程序"->开发"中打开允许安装非市场应用程序".
  • 重新启动您的 Windows/Mac.
  • 重新启动 Android 设备.
  • 在 Windows/Mac 中,重新安装设备驱动程序.

其次,确保将部署目标选择模式"设置为手动:

Second, make sure you set the "Deployment target selection mode" to manual:

  • 在 Eclipse Package Explorer 视图中,右键单击您的项目,选择 Run As -> Run Configurations...
  • 在运行配置"对话框中,在Android 应用程序"下.如果您的应用程序不存在,请双击 Android 应用程序创建一个新配置,并为其指定一个合适的名称(例如您的应用程序).确保选中此配置.
  • 在右侧区域,对于 Android 选项卡,确保您的项目显示在项目下;对于目标选项卡,选择始终提示选择设备"或手动".
  • 单击应用"并关闭运行配置"对话框.
    下次运行应用时,您应该会看到设备列表.

您的设备仍然无法显示?好的.第三,确保您的设备支持项目构建目标"Android 版本.

Your device still can't display? Ok. Third, make sure your "Project Build Target" Android version is supported in your Device.

  • 检查您设备的 Android 版本.在您的设备中,选择设置"->关于设备".
  • 检查您项目的 Android 版本.右键单击您的项目->属性->Android->ProjectBuildTarget.
  • 确保它不比您设备的版本新.

这篇关于Android 设备选择器 -- 设备未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆