eclipse 无法在真机上运行安卓应用

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

Can't run android app on real device

androideclipsedebugging

提问by foki

I'm on a Windows 7 device (Archos 101 Internet tab/Prestigio 7100c). It's connected with PC via USB cable. USB debugging is enabled from device settings.

我使用的是 Windows 7 设备(Archos 101 Internet 选项卡/Prestigio 7100c)。它通过USB电缆与PC连接。从设备设置启用 USB 调试。

Device manager -> PMP7100c -> right click -> Update Driver Software 
-> Search Automatically For Updated Driver Software
-> Driver Software For Your Device Is Up To Date.

Then I open Eclipse

然后我打开Eclipse

Run -> Run Configurations and select active devices as target -> apply
-> Run -> "No active compatible AVD's or devices found.
Relaunch this configuration after connecting a device or starting an AVD."

Is "adb" driver different from Device Menager's "driver software for your device"?I assumed that it is different and downloaded adb driver from Archos site and I got some .zip file.How to configure it?

“adb”驱动程序与Device Menager 的“驱动程序软件为您的设备”不同吗?我认为它不同并从爱可视网站下载了adb 驱动程序,我得到了一些.zip 文件。如何配置它?

回答by Vinay W

  • look for the USB driver for your device
  • install it
  • restart your command prompt
  • 为您的设备寻找 USB 驱动程序
  • 安装它
  • 重新启动命令提示符

回答by Faakhir

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

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

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. Or, to upgrade an existing Android USB driver on Windows 7 with the new driver:

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

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 Device Manager in the left pane of the Computer Management window. Locate and expand Android Phone in the right pane. Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard. Select Install from a list or specific location and click Next. Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search. Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.) Click Next to upgrade the driver.

将 Android 设备连接到计算机的 USB 端口。在桌面或 Windows 资源管理器中右键单击“计算机”,然后选择“管理”。在计算机管理窗口的左窗格中选择设备管理器。在右侧窗格中找到并展开 Android Phone。右键单击 Android Composite ADB Interface 并选择更新驱动程序。这将启动硬件更新向导。选择从列表或特定位置安装,然后单击下一步。选择在这些位置搜索最佳驱动程序;取消选中搜索可移动媒体;并选中在搜索中包含此位置。单击浏览并找到 USB 驱动程序文件夹。(Google USB 驱动程序位于\extras\google\usb_driver。)单击下一步升级驱动程序。

回答by ColossalChris

If you are on a mac and are pretty sure you should already have the drivers for the device then make sure to click the check mark next to 'USB debugging' inside the 'Developer Options' in settings. I can't tell you how dumb I felt when I unlocked the developer options by pressing the build number seven times then saw the developer options were unlocked and assumed usb debugging would automatically be selected only to find out 30 min later that I had to touch the little box. Yeah... don't do dumb kids!

如果您使用的是 mac 并且非常确定您应该已经拥有该设备的驱动程序,请确保单击设置中“开发人员选项”中“USB 调试”旁边的复选标记。我无法告诉你当我通过按内部版本号七次解锁开发者选项然后看到开发者选项被解锁并假设会自动选择 USB 调试时,我感到多么愚蠢,直到 30 分钟后才发现我不得不触摸小盒子。是的……不要做傻孩子!

回答by nikos.t

You might have to change the active USB computer connectionsetting. I had the same problem while running a Beanstalk custom rom based on Android 4.3. It was solved by switching from the default Media device (MTP)to Mass storage. The device was then automatically recognized by eclipse.

您可能需要更改活动的USB 计算机连接设置。我在运行基于 Android 4.3 的 Beanstalk 自定义 rom 时遇到了同样的问题。它是通过从默认媒体设备 (MTP)切换到大容量存储解决的。该设备随后被 eclipse 自动识别。