Android Windows 上的 Eclipse 无法识别 LG G3 设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24801676/
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 G3 device not recognized by Eclipse on Windows
提问by Tal Hindi
I recently bought LG G3 and I have enabled debugging mode but Eclipse is still not recognizing it, back when I used the Galaxy S3 for development I had to install Samsung Kies. The G3 drivers are installed and I can see it in My Computer, do I need something like the Kies but for the LG? If so can someone please post a link for that?
我最近买了 LG G3 并且我启用了调试模式,但 Eclipse 仍然无法识别它,当我使用 Galaxy S3 进行开发时,我不得不安装三星 Kies。G3 驱动程序已安装,我可以在“我的电脑”中看到它,除了 LG 之外,我是否需要像 Kies 这样的东西?如果是这样,有人可以发布链接吗?
采纳答案by Siddharth_Vyas
Try this solution :
试试这个解决方案:
- Right click on My Computer --> Properties --> Device Manager
- Right Click on your device --> Update driver software
- Click on "Browse my computer for driver software"
- Give path of your android sdk like "D:\Android_Sdk\sdk\extras\google\usb_driver" and tick "Include subfolders"
- Click
- Now repeat the steps till "Browse my computer for driver software".
- Then click on "Let me pick form list of device drivers on my computer". Click on the first option and click next and then click yes. Drivers will be installed for your device.
- 右击我的电脑-->属性-->设备管理器
- 右键单击您的设备 --> 更新驱动程序软件
- 单击“浏览我的计算机以查找驱动程序软件”
- 提供您的 android sdk 路径,如“D:\Android_Sdk\sdk\extras\google\usb_driver”并勾选“包括子文件夹”
- 点击
- 现在重复这些步骤,直到“浏览我的计算机以查找驱动程序软件”。
- 然后单击“让我选择计算机上设备驱动程序的表单列表”。单击第一个选项,然后单击下一步,然后单击是。将为您的设备安装驱动程序。
Hope this helps.
希望这可以帮助。
回答by lilbyrdie
See update below
请参阅下面的更新
I found the answer that worked for me.
我找到了对我有用的答案。
When you plug in the phone, bring down the status shade, pick the USB item ("USB connected") then, from there, pick "Internet connection" -- I chose Ethernet, but I'm not sure the choice matters on the dialog that pops up..
当你插入手机时,调低状态栏,选择 USB 项目(“USB 连接”),然后从那里选择“互联网连接”——我选择了以太网,但我不确定这个选择对弹出的对话框..
This enables USB debugging to become active; leaving it on Charging, MTP, or PTP does not work.
这使 USB 调试变为活动状态;将其保持在充电、MTP 或 PTP上不起作用。
Once you do this, you can follow @Siddharth's steps to setting the ADB drivers, if needed. (You may need to use the actual LG drivers and not the Google drivers, but once I got this far, it was just like any other phone.)
完成此操作后,如果需要,您可以按照 @Siddharth 的步骤设置 ADB 驱动程序。(您可能需要使用实际的 LG 驱动程序而不是 Google 驱动程序,但是一旦我做到了这一点,它就像任何其他手机一样。)
Caveat
警告
For me, even after going through this once, I still get the "installer" first and then have got go in and choose the "Internet connection" again. But, at least it works.
对我来说,即使经历了一次,我仍然先得到“安装程序”,然后再次进入并选择“互联网连接”。但是,至少它有效。
Update 10 Dec 2014
2014 年 12 月 10 日更新
A recent firmware update has, indeed, removed the "Internet connection" as an option. Instead, PTP now works. I still get the "Connected as an installer" notification every time I plug in the phone and have to click on the notification then click on "Camera (PTP)" -- or wait about a minute. It's slightly better than what It was.
最近的固件更新确实删除了“互联网连接”作为一个选项。相反,PTP 现在可以工作了。每次插入手机时,我仍然会收到“作为安装程序连接”的通知,必须点击通知,然后点击“相机(PTP)”——或者等待大约一分钟。它比原来的要好一些。
Also note: When this change occurred I had to install the drivers again for the phone, since it comes up as a different type of device when "Camera (PTP)" is chosen than when I used the "Internet connection" option.
另请注意:发生此更改时,我必须再次为手机安装驱动程序,因为与使用“Internet 连接”选项时相比,选择“相机 (PTP)”时它显示为不同类型的设备。
回答by yakobom
For me, this has solved the problem: simply go to LG's website, http://www.lg.com/us/support/software-manuals, select the model (I have selected 'D850') and go to Software Updates tab where you can download the driver. I have installed it and then Eclipse recognized my device. I'm working on Windows 8.1, by the way.
对我来说,这已经解决了问题:只需访问 LG 的网站http://www.lg.com/us/support/software-manuals,选择型号(我选择了“D850”)并转到“软件更新”选项卡哪里可以下载驱动。我已经安装了它,然后 Eclipse 识别了我的设备。顺便说一下,我正在使用 Windows 8.1。
yakobom
雅各布姆
回答by Seyed Yashar Banihashem
After a lot of searching and trying all solutions still I couldn't connect my LG G3 to eclipse on mac. Finally I find this solution, it works for me hope for you works too:
经过大量搜索和尝试所有解决方案后,我仍然无法将我的 LG G3 连接到 mac 上的 eclipse。最后我找到了这个解决方案,它对我有用,希望你也能用:
Install LG USB driver for mac
Go and enable developer mode in your G3 (Setting->About phone (in General Tab)--> Software information --> Tap 8 times on Build Number) then you will see the message which says the Developer option is enabled
In this step you expect that after connecting your mobile via USB cable, the Eclipse detect it But for me it didn't happen
in this step you need to go (Setting--> Developer Options--> and turn off this option from above green (on/off) switch then again switch on this option from same place (If you don't do this step the "USB Debugging" mode will stay fray and you can not enable it)
In Developer Options menu scroll down until find the "USB Debugging" then tic it and enable it.
almost finished , you should back and configure running mode for your application and see the G3 in your connected usb devices
为 Mac 安装 LG USB 驱动程序
在 G3 中启用开发者模式(设置->关于手机(在常规选项卡中)--> 软件信息--> 在版本号上点击 8 次)然后您将看到一条消息,说明已启用开发者选项
在这一步中,您希望通过 USB 电缆连接您的手机后,Eclipse 会检测到它但对我来说并没有发生
在这一步中,您需要去(设置--> 开发人员选项--> 并从绿色(开/关)开关上方关闭此选项,然后再次从同一位置打开此选项(如果您不执行此步骤,则“USB 调试”模式将保持磨损,您无法启用它)
在“开发人员选项”菜单中向下滚动,直到找到“USB 调试”,然后勾选并启用它。
快完成了,您应该返回并为您的应用程序配置运行模式,并在您连接的 USB 设备中查看 G3
回答by Sanjeevcn
Change the USB mode to PTP and you will get the RSA prompt.
将 USB 模式更改为 PTP,您将收到 RSA 提示。
Within the prompt, select allow it
> ok
and you are done.
在提示中,选择allow it
>ok
即可完成。
This worked for me when I had the same problem on a Mac computer.
当我在 Mac 计算机上遇到同样的问题时,这对我有用。
回答by Daniel Gruici
To contribute to possible solutions for this fix: I am using an LG G3 on a Mac.
对此修复的可能解决方案做出贡献:我在 Mac 上使用 LG G3。
In my case, ADB saw it as a device when I checked, and the Mac showed the device information in the System Information window, yet Eclipse did not see it. I also did not get the RSA confirmation pop-up when I connected the device through USB.
就我而言,ADB在我检查时将其视为设备,Mac在系统信息窗口中显示了设备信息,而Eclipse没有看到它。当我通过 USB 连接设备时,我也没有收到 RSA 确认弹出窗口。
To fix, with my G3 connected, I selected the USB PC Connection (either from the navigation bar or through the settings) and changed it to be Send Images (PTP). Once this was on, I was given the RSA pop up and Eclipse recognized the phone in the Run Configurations window.
为了修复,在连接 G3 的情况下,我选择了 USB PC 连接(从导航栏或通过设置)并将其更改为发送图像 (PTP)。一旦打开,我就会弹出 RSA,Eclipse 会在“运行配置”窗口中识别出手机。
回答by Paul Gregtheitroade
If you have this problem on Ubuntu; here is what I did to get it working:
如果你在 Ubuntu 上遇到这个问题;这是我为使其正常工作所做的工作:
- Switch to PTP from MTP on the phone (this assumes you're connected via USB)
- Disconnect the USB cable
- Go to settings -> developer options and select revoke usb authorizations then ok
- Make sure USB Debugging is checked
- Reconnect the USB cable and your phone will say its connected as an installer; wait a minute or three and debugging mode should appear on the status bar (on the phone)
- Open Eclipse and go to DDMS
- Select "reset adb" in the dropdown if your phone isn't appearing yet
- 在手机上从 MTP 切换到 PTP(假设您是通过 USB 连接的)
- 断开 USB 电缆
- 转到设置-> 开发人员选项并选择撤销 USB 授权然后确定
- 确保选中 USB 调试
- 重新连接 USB 数据线,您的手机会提示已作为安装程序连接;等待一三分钟,调试模式应该出现在状态栏上(在手机上)
- 打开 Eclipse 并转到 DDMS
- 如果您的手机尚未出现,请在下拉列表中选择“重置 adb”
回答by ethan123
Working on Windows 7. All of the solutions from other sites didn't help (i.e. restarting adb and switching between MTP, PTP, Charing). In the end, I found this article (http://www.technobuzz.net/install-lg-g3-lg-drivers-windows-mac-usb-adb/), which contains links for the necessary drivers for the lg g3 (and some others I think). This did the trick and made the RSA key fingerprint dialog appear finally. After confirming, adb and eclipse recognize my device perfectly!
在 Windows 7 上工作。来自其他站点的所有解决方案都没有帮助(即重新启动 adb 并在 MTP、PTP、Charing 之间切换)。最后,我找到了这篇文章(http://www.technobuzz.net/install-lg-g3-lg-drivers-windows-mac-usb-adb/),其中包含 lg g3 所需驱动程序的链接(以及我认为的其他一些)。这成功了,最终出现了 RSA 密钥指纹对话框。确认后,adb和eclipse完美识别我的设备!
回答by moein
it seems that Eclipse shows the offline mode for lg G3 and some newer devicesand there is no way no use these devices for ADB debugging
似乎 Eclipse 显示了lg G3 和一些较新设备的离线模式,并且无法将这些设备用于 ADB 调试
there is a way
有一种方法
I am using windows 10
我正在使用 Windows 10
1- download this 11 MB file < http://dl2.uncox.com/android/upload/platform-tools-v22.zip>
1- 下载这个 11 MB 的文件 < http://dl2.uncox.com/android/upload/platform-tools-v22.zip>
2- then go to the directory that you installed the SDK
2-然后转到您安装SDK的目录
3- extract the zip file in to the platform-tools folder , override all files(click yes to all) be sure that Eclipse doesn't running
3- 将 zip 文件解压到 platform-tools 文件夹中,覆盖所有文件(全部单击是)确保 Eclipse 没有运行
4- open Eclipse and select your android device that stands in devices tab at the right-top corner of your screen and then you can see the arrow near the screen- capture icon and you will find the reset-ADB. click on it ,after that your phone will ask you to allow android debugging for your device click on it
4-打开Eclipse并选择位于屏幕右上角设备选项卡中的Android设备,然后您可以看到屏幕截图图标附近的箭头,您将找到reset-ADB。单击它,之后您的手机会要求您允许对您的设备进行 android 调试单击它
5- congratulations .now you can see that your device shown online
5- 恭喜。现在您可以看到您的设备在线显示
i hope this will help .sorry for my english
我希望这会有所帮助。对不起我的英语
回答by Randika Vishman
I had this buggy error with my LG Optimus L3 phone connecting to Win7/8 machines!
我的 LG Optimus L3 手机连接到 Win7/8 机器时出现了这个错误!
Cause:Device Driver was missing as it seemed at the end when I fixed it!
原因:设备驱动程序丢失,就像我修复它的最后一样!
How to Fix:
怎么修:
- Search through web (using Google) "LG < Your_Phone_Model Number > Drivers Download".(Ex.:- Go to About phone in your settings list >Model Number, for me it's LG-E400f)
- Mostly the first few links are related to the required Device Driver download page.(Ex.:- for me I got the following linkand for each device driver LG or most of the other vendors/manufactures have that kind of a Manuals and Drivers Page) Visit that page mentiioning about software update and drivers downloads.
- Scroll down to the section of "Manuals and Software Update" and doing just the Step 1was enough for me, which is "Install the USB DRIVERS"
- Download it(for Mac or Windows) >Install It >Check Your Eclipse ADT >and it should be visible under Devices tab by now
- 通过网络搜索(使用 Google)“ LG < Your_Phone_Model Number > Drivers Download”。(例如:-转到设置列表中的关于手机>型号,对我来说是 LG-E400f)
- 大多数前几个链接与所需的设备驱动程序下载页面相关。(例如:-对我来说,我得到了以下链接,对于每个设备驱动程序 LG 或大多数其他供应商/制造商都有那种手册和驱动程序页面) 访问该页面,其中提到了软件更新和驱动程序下载。
- 向下滚动到“手册和软件更新”部分,只执行第 1 步就足够了,即“安装USB 驱动程序”
- 下载它(对于 Mac 或 Windows)>安装它>检查你的 Eclipse ADT >现在它应该在设备选项卡下可见
Cheers!!!
Hope this helps to someone else to clearly get to the solution!
干杯!!!
希望这有助于其他人清楚地找到解决方案!