简体   繁体   English

Eclipse找不到我的设备

[英]Eclipse doesn't find my device

I've updated everything. 我已经更新了一切。 No problem with driver. 司机没问题。 Added android:debuggable="true" to the . 添加了android:debuggable =“true”。 USB debugging mode on. USB调试模式开启。 But still dont work. 但还是不行。 My OS is Win7, my device is Huawei. 我的操作系统是Win7,我的设备是华为。

在此输入图像描述

  • Make sure, that your usb connection type is " Charge only ", 确保您的USB连接类型为“ 仅限充电 ”,
  • disable and the enable the USB debugging on your device ( Menu->Settings->Applications->Development->USB debugging uncheck -> check ), 禁用并启用设备上的USB调试Menu->Settings->Applications->Development->USB debugging 取消选中 -> 检查 ),

and Eclipse should recognize it. 和Eclipse应该认识到它。

Update 更新
I also have to close the emulator window (if I have running any), and this works for me all the time. 我还必须关闭模拟器窗口(如果我有任何运行),这对我一直有用。

Check the USB-to-microUSB cable. 检查USB-microUSB电缆。 I was using one that I suspect only charges battery power, but no data transmission. 我使用的是我怀疑只充电电池,但没有数据传输。 After changing to another cable, my phone successfully appeared under android device in the eclipse run window. 更改为另一根电缆后,我的手机在eclipse运行窗口中成功出现在android设备下。

Right click on your project, select 'Run As Configuration'. 右键单击您的项目,选择“Run As Configuration”。 then Select 'Android Application' ->you application and from 'target tab' uncheck all emulators. 然后选择“Android应用程序” - >您的应用程序,并从“目标选项卡”取消选中所有模拟器。 After this, make sure all emulators are down and then right click on your application and 'Run As' -> Android Application'. 在此之后,确保所有模拟器都已关闭,然后右键单击您的应用程序并“运行方式” - >“Android应用程序”。 it will show you the option to select your device as target. 它会显示您选择设备作为目标的选项。

is your phone in development mode? 你的手机是开发模式吗? settings --> applications --> USB debugging 设置 - >应用程序 - > USB调试

Try to restart adb server , run 尝试重启adb服务器,运行

adb kill-server
adb start-server

from command prompt 从命令提示符

Be sure that driver installed successfully, open device manager and find your device driver installed. 确保已成功安装驱动程序,打开设备管理器并找到已安装的设备驱动程序。 install your device software (like Kies in case of Samsung mobiles) it will install drivers automatically 安装您的设备软件(如三星手机的Kies)它将自动安装驱动程序

For other people having the same problem. 对于其他有同样问题的人。 I have the same problem before and tried all solution but the problem remain the same until I check the Device Manager and under Universal Serial Bus controllers, once I plug-in the device and I got an 'Unknown Device' in the list. 我之前遇到了同样的问题并尝试了所有解决方案,但问题保持不变,直到我检查设备管理器和通用串行总线控制器,一旦我插入设备,我在列表中有一个“未知设备”。 So, my solution is remove the unknown driver, scan the hardware and reinstall the driver for my device and now is working. 所以,我的解决方案是删除未知的驱动程序,扫描硬件并重新安装我的设备的驱动程序,现在正在工作。 Hope it helps. 希望能帮助到你。

我猜你的驱动程序有问题试试从这里安装你的驱动程序

花时间在'Debug'下查找我的设备 - 在'Run'下找到设备。

Solution from a different angle: Type "adb devices" in terminal (the executable is in platform-tools directory of Android SDK). 从不同角度解决方案:在终端中输入“adb devices”(可执行文件位于Android SDK的platform-tools目录中)。 If the output shows that the device exists, this may be related to the project you are trying to run (if not then the device is not installed correctly, driver issue). 如果输出显示设备存在,则可能与您尝试运行的项目有关(如果没有则设备未正确安装,驱动程序问题)。 If the device's Android version is lower than the project's minimum version (see AndroidManifest.xml file look for android:minSdkVersion), the device will not appear in the launch window. 如果设备的Android版本低于项目的最低版本(请参阅AndroidManifest.xml文件查找android:minSdkVersion),设备将不会出现在启动窗口中。 Try a lower number for android:minSdkVersion than the one specified which is smaller or uquals your device's version. 尝试使用较低的android:minSdkVersion,而不是指定的较小的数字或uquals你的设备的版本。 Please take in account that this may cause the app to crash if your device does not support the API used in the project. 请注意,如果您的设备不支持项目中使用的API,这可能会导致应用崩溃。

检查是否已为设备安装USB驱动程序。

I've meet this situation many times before , there's some workaround about this. 我之前已多次遇到这种情况,有一些解决方法。 :

  • unplug the cable and then plug in again 拔下电缆,然后重新插入
  • restart your device, or 重新启动您的设备,或
  • restart your computer 重启你的电脑

that way the device will online again. 这样设备将再次在线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM