Android ADB 设备命令无法识别 LG G2 vs980(virtualbox 上的 Win7)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22237357/
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
LG G2 vs980 not recognized by ADB devices command (Win7 on virtualbox)
提问by karns
I have been developing android mobile apps via eclipse in school for some time now, deploying the apps to virtual devices. However, I now want to deploy them to my LG G2 android device for testing and speed purposes. I know there are posts about other devices not working, but the solutions are to no avail for me.
一段时间以来,我一直在学校通过 eclipse 开发 android 移动应用程序,将应用程序部署到虚拟设备。但是,我现在想将它们部署到我的 LG G2 android 设备以进行测试和提高速度。我知道有关于其他设备无法正常工作的帖子,但这些解决方案对我来说无济于事。
I am on virtualbox running windows 7. I have the necessary vb extensions installed and vb DOES detect my LG G2 (asks to view folders..etc), however eclipse/adb on my vb cannot find it still.
我在运行 Windows 7 的虚拟机上。我安装了必要的 vb 扩展并且 vb 确实检测到我的 LG G2(要求查看文件夹..等),但是我的 vb 上的 eclipse/adb 仍然找不到它。
I have put what I thought is the proper device vendor id (1004, 0232) in the adb_usb.ini file since some others found that to help get their device detected.
我已经在 adb_usb.ini 文件中放入了我认为正确的设备供应商 ID (1004, 0232),因为其他一些人发现这有助于检测到他们的设备。
I have done the commands adb kill-server & start-server many times. I have restarted the phone and vb also. I have also tried all of the phones connection types (internet/ethernet, MTP)
我已经多次执行命令 adb kill-server & start-server 。我也重新启动了手机和 vb。我还尝试了所有电话连接类型(互联网/以太网、MTP)
Some help would be awesome, Thanks fellas
一些帮助会很棒,谢谢伙计们
回答by Daniel Smith
When you plug the phone in, you are given options for the "USB connection method".
当您插入手机时,您会看到“USB 连接方法”的选项。
You must select Internet connection
or Send Images (PTP)
from the list in order to use USB Debugging tools.
您必须从列表中选择Internet connection
或Send Images (PTP)
才能使用 USB 调试工具。
For selecting Internet Connection
, the other options sometimes include Charge phone
, Media sync
, and Camera
.
对于选择Internet Connection
,其他选项有时包括Charge phone
,Media sync
,和Camera
。
For selecting Send Images (PTP)
, the other options sometimes include Charge Phone
and Media Device (MTP)
.
对于选择Send Images (PTP)
,其他选项有时包括Charge Phone
和Media Device (MTP)
。
回答by Pepelac
Here are may be several solutions:
这里可能有几种解决方案:
1) When your device connected open Device manager
(default windows tool) and found Unknown device
or some not properly recognized device and try to setup driver manually.
1) 当您的设备连接打开Device manager
(默认 Windows 工具)并发现Unknown device
或某些无法正确识别的设备并尝试手动设置驱动程序时。
2) Enable USB debugging
option in phone settings:
go to Setting->About Phone
and tap several times on Build Number
,
then go back (Settings->Developer -> Options
) and turn it on
2)USB debugging
在手机设置中启用选项:
转到Setting->About Phone
并点按几次Build Number
,
然后返回 ( Settings->Developer -> Options
) 并将其打开
3) Try to update your USB driver/adb
via Android Manager
launched from Eclipse
.
3)尝试更新您USB driver/adb
通过Android Manager
从推出Eclipse
。
回答by rdk
When I upgraded my LG g2 from Android 4.4 to 5.0.2, usb debugging stopped working.
当我将 LG g2 从 Android 4.4 升级到 5.0.2 时,USB 调试停止工作。
I didnt have an "Internet" option for USB connection method.
我没有 USB 连接方法的“Internet”选项。
Through lots of trial, error, searching, experimenting, the I found that enabling "USB tethering" (in Settings -> Tethering & Networks -> USB Tethering) did the trick. Once I enabled USB tethering, I could download debugging programs via adb/AndroidStudio. Before USB tethering enabled, adb could not recognize my 5.0.2 device.
通过大量的试验、错误、搜索、实验,我发现启用“USB 网络共享”(在设置 -> 网络共享和网络 -> USB 网络共享中)可以解决问题。启用 USB 网络共享后,我可以通过 adb/AndroidStudio 下载调试程序。在启用 USB 网络共享之前,adb 无法识别我的 5.0.2 设备。
回答by Mecaly Walis
How to Setup ADB on Windows
如何在 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