Android设备选配 - 设备没有显示出来设备、Android

2023-09-12 03:50:15 作者:棄鋽ゞ`暀厝-、

我使用Eclipse + ADT,我的物理设备(如下所示)未列出的Andr​​oid设备选配。我已经更新了Eclipse和所有的Andr​​oid包。我的手机运行的是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是,例如C:\机器人\ Android的SDK \平台工具 键入 ADB设备 Open a Windows Command Prompt (cmd.exe)/Mac Terminal. Go to the folder (via cd) where ADB.exe is in, e.g, C:\Android\android-sdk\platform-tools. Type adb devices

如果您的设备已经列出(显示序列号),进入第二次检查。否则,这意味着亚行目前还不能谈谈您的设备。有很多种原因,这可能会导致问题,请尝试:

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 - >运行配置... 在运行配置对话框,在Android应用程序。如果您的应用程序不存在,双击Android应用程序创建一个新的配置,给它一个合适的名称(例如,您的应用程序)。请确保选择此配置。 在右侧区域,为Android标签,使项目下的显示确保您的项目;对于目标选项卡,选择总是提示选择设备或手动。 单击应用,然后关闭运行配置对话框。 当你运行你的应用程序下一次,你应该看到你的设备列表。 In Eclipse Package Explorer view, right click your Project, select Run As -> Run Configurations... In Run Configurations dialog, under Android Application. If your app doesn't exist, double click Android Application to create a new configuration, give it a suitable name (e.g. your app). Make sure this configuration is selected. On the right area, for Android tab, make sure your project displayed under Project; for Target tab, select "Always prompt to select device" or "manual". Click "Apply" and close the Run Configurations dialog. The next time when you Run your app, you should see your list of devices.

您的设备仍然无法显示?好。三,请确保您的工程建设目标Android版本中支持你的设备。

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

检查设备的Andr​​oid版本。在设备上,选择设置 - >关于设备。 检查Android版本您的项目。右键点击你的项目 - >属性 - > Android-> ProjectBuildTarget。 确保这不是比你的设备的版本更新。