Eclipse 无法识别 Android 设备

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19849781/
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-09-19 21:19:16  来源:igfitidea点击:

Android device not recognized by Eclipse

androideclipse

提问by notavirus

Samsung Galaxy S4. USB debugging is enabled. I selected to always prompt for device. All drivers are up to date and installed. Device version is 4.2, min sdk version is 8 and target is 18. I have restarted eclipse, my computer, and my device. Still will not recognize my device. BTW using Windows 7. Any help is appreciated, thank you in advance.

三星Galaxy S4。USB 调试已启用。我选择始终提示输入设备。所有驱动程序都是最新的并已安装。设备版本是 4.2,最小 sdk 版本是 8,目标是 18。我已经重新启动了 eclipse、我的电脑和我的设备。仍然无法识别我的设备。顺便说一句,使用 Windows 7。感谢任何帮助,在此先感谢您。

SOLVED: Thank you for the suggestions everyone, plugged it in the next morning and it worked. Must have been a driver not installed, but I did unplug and plug in numerous times.

已解决:谢谢大家的建议,第二天早上插上电源就可以了。一定是驱动没有安装,但我确实拔插了很多次。

回答by SHASHIDHAR MANCHUKONDA

Restarting the adb server, Eclipse, and device did the trick for me.

重新启动 adb 服务器、Eclipse 和设备对我有用。

C:\Android\android-sdk\platform-tools>adb kill-server

C:\Android\android-sdk\platform-tools>adb start-server
  • daemon not running. starting it now on port 5037 *
  • daemon started successfully *
  • 守护进程没有运行。现在在端口 5037 上启动它 *
  • 守护进程成功启动 *

回答by Aniket Thakur

If your android device is not showing up at all then either

如果您的 android 设备根本没有出现,那么要么

  1. USB debugging is not enabled on your device OR
  2. Suitable driver is not installed for the same.
  1. 您的设备上未启用 USB 调试或
  2. 没有安装合适的驱动程序。

You can check this case by running the command ./adb devices in the adt-bundle-windows-x86\sdk\platform-tools directory. I have added the detailed solution for this my personal blog post - Troubleshooting steps when Eclipse ADT does not recognizing your Android device.

您可以通过在 adt-bundle-windows-x86\sdk\platform-tools 目录中运行命令 ./adb devices 来检查这种情况。我在我的个人博客文章中为此添加了详细的解决方案 - Eclipse ADT 无法识别您的 Android 设备时的故障排除步骤

If your android device is detected but is not recognized as in you are seeing something like ???? with no permissionsthen you may want to restart your server. This is again explained with screenshots in my article Troubleshooting steps when an Android device is detected but not recognized by Eclipse ADT.

如果您的 android 设备被检测到但未被识别,因为您看到的是类似的内容,???? with no permissions那么您可能需要重新启动服务器。这在我的文章“当 Eclipse ADT 检测到但未识别 ​​Android 设备时的故障排除步骤”中的屏幕截图中再次进行了解释。

回答by Hamid Reza

I have this problem too, the problem was my windows firewall, I just change some Inbound and Outbound setting ( Firewall advance setting ) for abd.exe ( Emulator ) and problem fixed. Do it and reset your emulator. Hope this help you.

我也有这个问题,问题是我的 Windows 防火墙,我只是更改了 abd.exe(模拟器)的一些入站和出站设置(防火墙提前设置)并解决了问题。这样做并重置您的模拟器。希望这对你有帮助。

回答by John-Perez

I was able to see my device in the "Devices" window but when I tried to Run the project my device was not shown in the "Pick a device" window. What worked for me was re-plugging my device while I was on the "Pick a device" window and it showed up.

我能够在“设备”窗口中看到我的设备,但是当我尝试运行项目时,我的设备没有显示在“选择设备”窗口中。对我有用的是当我在“选择设备”窗口时重新插入我的设备,它出现了。

回答by Val Martinez

Sometimes I have the same problem and I solve it thus:

有时我有同样的问题,我是这样解决的:

  1. Close eclipse
  2. Start Windows Task Manager and kill adb process
  3. Open eclipse again
  1. 关闭日食
  2. 启动 Windows 任务管理器并终止 adb 进程
  3. 再次打开eclipse

Then, go to DDMS perspective and check what devices are connected. Your phone should appears now.

然后,转到 DDMS 透视图并检查连接了哪些设备。您的手机现在应该出现了。