Android 设备选择器 - 设备未显示

发布于 2024-08-21 13:39:25 字数 259 浏览 8 评论 0原文

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

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

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

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?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(30

木格 2024-08-28 13:39:25

首先,确保 Android ADB 可以与您的设备“对话”。

  • 打开 Windows 命令提示符 (cmd.exe)/Mac 终端。
  • 转到 ADB.exe 所在的文件夹(通过 cd),例如 C:\Android\android-sdk\platform-tools。
  • 输入 adb devices

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

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

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

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

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

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

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

  • 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:

  • In your device, turn on "USB Debugging Mode" in Settings -> Application -> Development.
  • In your device, turn on "Allow installation of non-market Applications" in Settings -> Application -> Development.
  • Restart your Windows/Mac.
  • Restart the Android device.
  • In Windows/Mac, reinstall device drivers.

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

  • 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.

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

  • Check your device's Android version. In your device, select Settings->About Device.
  • Check Android version of your project. Right click your project->Properties->Android->ProjectBuildTarget.
  • Make sure that it's not newer than your device's version.
妖妓 2024-08-28 13:39:25

另请记住将“部署目标选择模式”设置为手动(调试配置 -> 目标选项卡)

Also remember to set the 'Deployment target selection mode' to manual (Debug configurations -> target tab)

就像说晚安 2024-08-28 13:39:25

遵循此处其他答案中的一些步骤以及此处找到的内容后: ADB Driver for HTC Incredible,我必须发出两个命令才能显示我的手机。

adb kill-server
adb start-server

最后,在这两个命令之后,当我运行时,我的设备会显示出来。

adb devices

ADB 进程可能会卡住(那里的技术术语)。发生这种情况时,上述命令将不起作用。我发现杀死 ADB 进程(在 Windows 上的任务管理器的进程选项卡中查找 adb.exe,或者在 Linux 下杀死 adb 的 PID),然后使用

adb start-server

通常可以修复该问题。

After following some of the steps in other answers here, as well as what is found here: ADB Driver for HTC Incredible, I had to issue two commands before my phone would show up.

adb kill-server
adb start-server

Finally, after those two commands would my device show up when I ran

adb devices

From time to time, the ADB process may get stuck (technical term there). When that happens, the above commands will not work. I have found that killing the ADB process (look in for adb.exe in the Processes tab in Task Manager on Windows, or kill the PID for adb under linux), and then use

adb start-server

generally fixes that problem.

蓝海 2024-08-28 13:39:25

我认为这是因为设备上未选中 USB 调试选项

I think this was because the option for USB debugging wasn't checked on the device

別甾虛僞 2024-08-28 13:39:25

Android 开发者网站上的这个注释对我有用:

在您的设备上启用 USB 调试。在大多数运行 Android 的设备上
3.2 或更早版本,您可以在“设置”>“设置”下找到该选项。应用领域>>发展。在 Android 4.0 及更高版本上,它位于“设置”>“开发商
选项。注意:在 Android 4.2 及更高版本上,开发者选项被隐藏
默认情况下。要使其可用,请转到“设置”>“关于电话和点击
构建次数七次。返回上一界面查找
开发者选项。

This note from the Android Developer site is what worked for me:

Enable USB debugging on your device. On most devices running Android
3.2 or older, you can find the option under Settings > Applications > Development. On Android 4.0 and newer, it's in Settings > Developer
options. Note: On Android 4.2 and newer, Developer options is hidden
by default. To make it available, go to Settings > About phone and tap
Build number seven times. Return to the previous screen to find
Developer options.

影子的影子 2024-08-28 13:39:25

使用 Android SDK Manager 可能会也可能不会实际安装 Google USB 驱动程序。

请按照此处的步骤操作: http://developer.android.com/sdk/oem- usb.html#InstallingDriver 允许 Eclipse 显示设备。

Using the Android SDK Manager may or may not actually install the Google USB Driver.

Following the steps here: http://developer.android.com/sdk/oem-usb.html#InstallingDriver allowed Eclipse to display the device.

◇流星雨 2024-08-28 13:39:25

如果您在“调试为”对话框中选择“Android 应用程序”,则应该能够将调试器直接连接到设备。确保在 shell 上运行 adb devices 并查看列出的设备。如果没有,您将需要重新安装设备的驱动程序。您可以使用 USBdeview 卸载驱动程序,然后下载并重新安装驱动程序,直到您在运行 adb devices 时看到列出的设备的序列号。 - 阿鲁纳巴·达斯

If you select Android Application in the Debug As dialog, you should be able to attach the debugger to the device directly. Make sure you run adb devices on your shell and see your device listed. If not, you will need to re-install the driver for the device. You can uninstall the drivers you have using USBdeview and then download and re-install the drivers until you see the serial number for the device listed when you run adb devices. - Arunabh Das

裂开嘴轻声笑有多痛 2024-08-28 13:39:25

其他答案都不适合我。对于我来说,设备在我重新启动手机后注册了 eclipse。该过程将因手机型号而异。

None of the other answers worked for me. For me the device registered with eclipse after I rebooted the phone. Process for that is going to vary by phone model.

缺⑴份安定 2024-08-28 13:39:25

http://developer.android.com/tools/extras/oem-usb .html#InstallingDriver

Windows 7

首次在 Windows 7 上安装 Android USB 驱动程序:

将 Android 设备连接到计算机的 USB 端口。
从桌面或 Windows 资源管理器中右键单击“计算机”,然后选择“管理”。
在左侧窗格中选择设备。
在右侧窗格中找到并展开其他设备。
右键单击设备名称(例如 Nexus S)并选择更新驱动程序软件。这将启动硬件更新向导。
选择浏览我的计算机以获取驱动程序软件,然后单击下一步。
单击“浏览”并找到 USB 驱动程序文件夹。 (Google USB 驱动程序位于 \extras\google\usb_driver。)
单击“下一步”安装驱动程序。

http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver

Windows 7

To install the Android USB driver on Windows 7 for the first time:

Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Devices in the left pane.
Locate and expand Other device in the right pane.
Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
Select Browse my computer for driver software and click Next.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.

蓦然回首 2024-08-28 13:39:25

我有一个类似的问题...我的问题与使用过高的 sdk 有关...

我更改为:

uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17"/

并且

uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"

我的问题得到了解决。

I had a similar problem...and my issue was related to using too high of an sdk....

I changed:

uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17"/

to

uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17"

and my problem was solved.

筑梦 2024-08-28 13:39:25

我来晚了,但如果它对某人有帮助...请确保连接电缆时不会与 USB 模式发生冲突。我选择“仅充电”(抱歉,如果不准确,我有一个西班牙终端),但有时它会更改为共享网络,并且运行应用程序时设备会从列表中消失。

I'm very late here, but if it helps someone... be sure you don´t have a conflict with your USB mode when attaching the cable. I pick "Only charge" (sorry if it's not exact, I have an Spanish terminal) but sometimes it changes to share net and the device dissapears from the list when running an app.

油饼 2024-08-28 13:39:25

我面临着 Android 设备没有显示在“设备选择器”中,所以我尽力但无济于事,至少我发现 ADB 驱动程序应该更新,为此我做了以下步骤
1.从“http://forum.xda-developers.com/showthread.php?t=1161769”下载驱动程序
2.设备管理器->>右键单击ADB ->>更新驱动程序->浏览下载驱动程序的路径然后确定
更新成功。
我在“设备选择器”中找到了我的 Android 设备
尝试放松

I was facing the android device not showing in "device chooser" so I try my best but no avail, at least I found that ADB drivers should update, for this I did following steps
1. download driver from"http://forum.xda-developers.com/showthread.php?t=1161769"
2. Device Manager->> right click on ADB ->> update driver ->>browse path of downloaded drivers then OK
update successful.
and I found my android device in "Device Chooser"
try and getting relax

煞人兵器 2024-08-28 13:39:25

如果您有三星设备,则需要安装特殊的驱动程序进行开发:

http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows

If you have a samsung device you need to install a special driver for development:

http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows

无远思近则忧 2024-08-28 13:39:25

好吧...所以我永远无法让我的 PENDO 垫出现..直到我遇到这个..

进程 android.process.acore 已停止..

是的.. 与此问题无关,对吗?啊啊,但它把我引向了 MOBILEGO。这是一个桌面应用程序,可让您管理您的设备。猜猜如何...通过 USB 连接。是的,确实如此。它在我的 windows 盒子上安装了所有东西,现在 Eclipse 可以毫无问题地看到我的 PENDO。

Okay... so I could never get my PENDO pad to show up.. until I encountered this..

process android.process.acore has stopped..

Yeah.. nothing to do with this issue right? Ah ah but it lead me to MOBILEGO. It's a desk application that lets you admin your device.. Guess how.. by connecting via USB. Yep and it does.. It installed everything on my windows box, and now Eclipse has no problem seeing my PENDO.

痴意少年 2024-08-28 13:39:25

另一种选择:在现代 Apple iMac 上,最靠近机器外缘的 USB 端口永远无法与 ADB 配合使用,而其他所有端口都可以正常工作。我在两台不同的 iMac 上看到过这种情况,可能是 USB 1.0 端口(或同样愚蠢的端口)——或者这是一般的制造缺陷。

将 USB 电缆(新的、旧的、高质量的或便宜的)插入所有其他 USB 端口工作正常,但插入该端口会失败 ADB

注意:插入该端口可以进行文件传输等 - 它是只有 ADB 会崩溃。

Another alternative: on modern Apple iMac's, the USB port closest to the outside edge of the machine never works with ADB, whereas all others work fine. I've seen this on two different iMacs, possibly those are USB 1.0 ports (or something equally stupid) - or it's a general manufacturing defect.

Plugging USB cables (new, old, high quality or cheap) into all other USB ports works fine, but plugging into that one fails ADB

NB: plugging into that port works for file-transfer, etc - it's only ADB that breaks.

伤痕我心 2024-08-28 13:39:25

在 Galaxy Note 3 中,您需要启用开发者选项。访问“关于设备”并多次单击版本号,直到出现一条消息,告诉您开发人员选项已启用。返回到常规,然后就可以了..开发人员选项已启用并选择 USB 调试选项。适用于 Galaxy note 3 N9005 Andriod 4.3。

In galaxy note 3 you need to enable the developer option. Access the "About Device" and click on the Build number multiple time until a message appear which telling you that the developer option has been enabled. Go back to general and there your go..the developer option has been enabled and select USB debugging option. This is for Galaxy note 3 N9005 Andriod 4.3.

素食主义者 2024-08-28 13:39:25

我的问题是使用旧的中兴手机,我忽略了插入手机时不断弹出的 autorun.exe。我终于运行了自动运行软件,它安装了 ZTE 驱动程序,手机开始出现在 adb devices 中。

My problem was with an old ZTE phone, I was ignoring the autorun.exe that kept popping up when I plugged in the phone. I finally ran the autorun software it installed ZTE drivers and the phone started showing up in adb devices.

放赐 2024-08-28 13:39:25

由于 android 清单文件中的以下行,设备未显示 -

<uses-sdk android:minSdkVersion="18"
        android:targetSdkVersion="18"/>

我将其更改为 -

<uses-sdk android:minSdkVersion="8"
        android:targetSdkVersion="19"/>

现在它可以工作了。

The device was not showing up because of the following line in android manifest file---

<uses-sdk android:minSdkVersion="18"
        android:targetSdkVersion="18"/>

I changed it to---

<uses-sdk android:minSdkVersion="8"
        android:targetSdkVersion="19"/>

Now it worked.

吝吻 2024-08-28 13:39:25

禁用手机中的调试模式和开发人员选项。

启动 Android 设备监视器。

现在在手机中启用开发人员选项和调试模式。

您应该能够在 Android 设备监视器中看到此后列出的您的设备。之后您应该能够在 Android 设备选择器下看到它。

Disable debugging mode and developer options in your phone.

Start Android device monitor.

Now enable developer options and debugging mode in your phone.

You should be able to see your device listed after this in android device monitor. There after you should be able to see it under Android device chooser.

脸赞 2024-08-28 13:39:25

将我的设备连接到另一台笔记本电脑上的 adb 后,它从 adb 设备列表中消失了。

我在手机上选择“仅充电”,然后重新启用USB调试。

这为我解决了问题。

My device had disappeared from the adb devices list after connecting it to adb on another laptop.

I selected "Charge only" on the phone and then re-enabled USB debugging.

That resolved the problem for me.

云朵有点甜 2024-08-28 13:39:25

使用 USBDeview,从这里 http://www.nirsoft.net/utils/usb_devices_view.html

以管理员身份运行。

断开手机连接。

删除与您的手机关联的所有驱动程序。有些人会说Android以及手机的名称和型号。

重新插入手机,以便 Windows 重新安装驱动程序。

当其他解决方案不起作用时,这对我有用。

Use USBDeview, from here, http://www.nirsoft.net/utils/usb_devices_view.html

Run as administrator.

Disconnect your phone.

Delete all the drivers associated with your phone. Some will say Android as well as the name and model of the phone.

Plug your phone back in so that Windows re-installs the drivers.

This worked for me, when the other solutions didn't.

寻找我们的幸福 2024-08-28 13:39:25

我使用的是 MAC,由于某种原因,当我通过 USB 连接我的设备时,有一个名为 USB 驱动程序的奇怪安装,当我从 Finder 中卸载它时,Androide 设备选择器立即识别出我的设备。

I'm on a MAC and for some reason when I connected my device via USB there was a weird mount called USB-Drivers which when I UNmounted from Finder, the Androide Device Chooser instantly recognized my device.

风启觞 2024-08-28 13:39:25

我有一台装有 Win 8 的 HTC G2,我花了几个小时才让 Eclipse 识别该设备。当我在 http:// 上发现此内容时,我遵循了上述所有建议,但没有效果。 forum.xda-developers.com/showthread.php?t=1964372

现在在“计算机”上单击鼠标右键,然后单击“管理”。前往
装置经理。右键单击Acer A700,单击更新驱动程序软件。
选择“浏览我的计算机以查找驱动程序软件”。选择“让我选
从列表中“。单击所有设备或/和从磁盘。转到 C:\Program
文件 (x86)\Android\android-sdk\extras\google\usb_driver\ 并单击
2个文件夹下的文件(android_winusb.inf)点击第一个
之一并安装。

将“其他设备”下的“Android Phone”替换为“Acer A700”,并使用 adt-bundle-windows-x86_64\sdk\extras\google\usb_driver 下的 android_winusb 文件。当您收到有关 Windows 变得不稳定且突然的可怕提示时,单击“确定”!

I have an HTC G2 with Win 8 and it took me hours to get Eclipse to recognize the device. I followed all of the advice above to no avail when I found this on http://forum.xda-developers.com/showthread.php?t=1964372:

Now click with the right mouse button on Computer, click Manage. Go to
Device Manager. Right click Acer A700, click update driver software.
Choose "Browe my computer for driver software". Choose "Let me pick
from a list". Click all devices or/and Have disk.. Go to C:\Program
Files (x86)\Android\android-sdk\extras\google\usb_driver\ and click
the file under the 2 folders (android_winusb.inf) Click on the first
one and install.

Substitute "Android Phone" under "Other devices" for "Acer A700" and use the android_winusb file under adt-bundle-windows-x86_64\sdk\extras\google\usb_driver. Click "OK" when you get the scary prompt about Windows becoming unstable and presto!

踏雪无痕 2024-08-28 13:39:25

我遇到了同样的问题,并通过以下方式解决:我的手机是 SonyEricsson Xperia X8,无法被 Windows 7 识别(但可以被 Ubuntu 识别)。因此我发现这是一个驱动程序问题。

0) 插入我的智能手机
1)右键单击计算机->管理->设备管理器
2)在一个名为“SEMC HUSB”的项目上有一个黄色感叹号...双击该项目(实际上与智能手机相关)并更新驱动程序(之前从该页面下载 http://developer.sonymobile.com/downloads/drivers/sony-ericsson-x8-drivers / 现在一切正常)。我想如果您有不同的手机,您可以通过谷歌找到合适的司机。

干杯

I had the same problem and solved this way: my phone is a SonyEricsson Xperia X8 and wasn't recognized by windows 7 (but it was by Ubuntu). Hence I figured out it was a driver problem.

0) Pluged in my smartphone
1) Right clicked on Computer->Manage->Device Manager
2) There was a yellow exclamation mark on one item named something like "SEMC HUSB"... Double clicked on that item (that was actually related to the smarphone) and updated the drivers (previously downloaded from this page http://developer.sonymobile.com/downloads/drivers/sony-ericsson-x8-drivers/ and now everything works). I guess that you can find your proper dirvers via google if you have a different phone.

Cheers

云巢 2024-08-28 13:39:25

并且,如果您的设备是带有原始 ROM (2.1) 或类似版本的索尼爱立信 Xperia X8,则使用

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17" />

在 AndroidManifest.xml 文件中

And , if your device is a Sony Ericsson Xperia X8 with the original ROM (2.1) or similar, then use:

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17" />

in AndroidManifest.xml file

阪姬 2024-08-28 13:39:25

我必须转到“设置 - >开发人员选项 - > USB调试”。确保 USB 调试已打开。

三星 Galaxy S II Skyrocket

Android 4.1.2

Mac 10.8.5

I had to goto "Settings->Developer options->USB debugging". Make sure USB debugging is turned on.

Samsung Galaxy S II Skyrocket

Android 4.1.2

Mac 10.8.5

别再吹冷风 2024-08-28 13:39:25

我在使用 Sony Experia Z 时遇到了同样的问题,那是因为我在 Windows 8 上运行,显然我需要为其下载驱动程序。

正如 stkhou 所提到的,我检查了我的设备管理器并看到了感叹号。
这是我手机的型号,仔细检查后,我拔掉了 USB,它就消失了。
所以我再次插入它,图标再次出现。

所以很确定是驱动问题,所以我下载并安装了它。
安装后,再次在 eclipse 上运行 android 设备选择器,它对我有用。

我希望你也一样。

下面我保存了可能会引起索尼问题的人感兴趣的链接。 ;)

以下是索尼设备的可用驱动程序列表:

http://developer.sonymobile.com/downloads/drivers /

索尼 SDK

http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/

I had the same issue with Sony Experia Z, that is because I'm running on windows 8 and apparently I need to download a driver for it.

As mentioned by stkhou, I check my Device manager and saw the eclamation mark.
Which it was the model of my phone, to double check so I remove the usb and it dissapeard.
So I plug it in again and the icon appears again.

So it's pretty sure the driver issue, so I have download it and install.
After installation, run the android device chooser on eclipse again and it works for me.

I hope same for you.

Here below I saved the links that might intrests someone who has sony issue. ;)

Here are the list of available driver for sony devices:

http://developer.sonymobile.com/downloads/drivers/

Sony SDK

http://developer.sonymobile.com/knowledge-base/sony-add-on-sdk/install-the-sony-add-on-sdk/

十二 2024-08-28 13:39:25

一种可能的原因是检查 Android SDK Manager 并在 Extras 文件夹中安装 Google USB 驱动程序(如果尚未安装)。

One possible reason is to check Android SDK Manager and install Google USB Driver in Extras folder if you have not installed it.

半﹌身腐败 2024-08-28 13:39:25

如果这些选项都不起作用,我更改端口,然后启用 USB 调试,它就可以正常工作。

If none of the options work, I change the port and then enable USB debugging and it works fine.

七分※倦醒 2024-08-28 13:39:25

我在查看 Android 设备时遇到问题,因此当 adb 报告不存在任何设备时,我重新启动 USB 集线器,瞧,它又回到了 adb 和 eclipse DDMS 中。

I had problem seeing my android device, so when adb reported that none were present, I cycled power on my USB hub and voilà, it came back in adb and in eclipse DDMS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文