ADB设备命令无法识别LG G2 vs980(虚拟机上的Win7)

时间:2014-03-06 22:20:16

标签: android eclipse adb virtualbox avd

我一直在学校通过eclipse开发Android移动应用程序已有一段时间了,将应用程序部署到虚拟设备。但是,我现在想将它们部署到我的LG G2安卓设备进行测试和速度目的。我知道有关于其他设备不起作用的帖子,但解决方案对我无济于事。

我在虚拟机上运行Windows 7.我安装了必要的vb扩展,并且vb检测到我的LG G2(要求查看文件夹..等),但是我的vb上的eclipse / adb仍然无法找到它。

我已经将我认为正确的设备供应商ID(1004,0232)放在adb_usb.ini文件中,因为其他一些人发现这有助于检测他们的设备。

我完成了命令adb kill-server&多次启动服务器。我已经重新启动了手机和vb。我也尝试了所有的手机连接类型(互联网/以太网,MTP)

一些帮助会很棒, 谢谢费拉斯

4 个答案:

答案 0 :(得分:47)

当您插入手机时,您可以选择“USB连接方式”。

您必须从列表中选择Internet connectionSend Images (PTP)才能使用USB调试工具。

要选择Internet Connection,其他选项有时包括Charge phoneMedia syncCamera

要选择Send Images (PTP),其他选项有时包括Charge PhoneMedia Device (MTP)

答案 1 :(得分:9)

以下可能有几种解决方案:

1)当您的设备连接打开Device manager(默认的Windows工具)并找到Unknown device或某些未正确识别的设备时,请尝试手动设置驱动程序。

2)在手机设置中启用USB debugging选项:
  转到Setting->About Phone并在Build Number上点按几次,
 然后返回(Settings->Developer -> Options)并打开它

3)尝试通过从USB driver/adb发起的Android Manager更新Eclipse

答案 2 :(得分:6)

当我将LG g2从Android 4.4升级到5.0.2时,usb调试停止工作。

我没有"互联网" USB连接方式选项。

通过大量的试验,错误,搜索,实验,我发现启用" USB网络共享" (在设置中 - > Tethering& Networks - > USB Tethering)就可以了。启用USB网络共享后,我可以通过adb / AndroidStudio下载调试程序。在启用USB网络共享之前,adb无法识别我的5.0.2设备。

答案 3 :(得分:0)

如何在Windows上设置ADB

Download the Android SDK package for Windows [android-sdk_r21.1-windows.zip]
Extract the zip files to your C:\ drive. Now you have a folder android-sdk-linux
Double click on SDK Manager to initiate the SDK manager. You shall perceive the following window.
Make sure everything is un-ticked. Now select Android SDK Platform-tools and install it.
During the next window, you will be prompted. Accept the license and click on Install.
When the installation is complete, close the window.
The SDK manager has now download the platform-tools successfully, which certainly includes our prior ADB.
The next step is to define the path where ADB is present.
Go to C:\android-sdk-windows\platform-tools and take note of this path.
Go to desktop, right click on Computer and select Properties.
On the left pane, click on Advanced System Settings and a new window shall open.
Select Environment Variables under Advanced tab.
Select Path variable and click edit.
Now add the path we noted in step #9 to the variable value and hit OK.
Confirm and apply all the changes.
To confirm that ADB has been configured properly, open CMD window and type in:

adb

You now have ADB successfully installed and configured on your Windows machine