Java Eclipse 中未检测到 Android 设备
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19564732/
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
Android Device Not Detecting In Eclipse
提问by Nithin Michael
I am trying to run my application on my Device from the Eclipse In windows.But my device is not detecting there in the eclipse.
我正在尝试从 Windows 中的 Eclipse 在我的设备上运行我的应用程序。但是我的设备没有在 Eclipse 中检测到那里。
My device driver is updated. In My device, I turned on "USB debugging mode"in Settings->Application->Development and also "Allow installation of non-market Applications"in Settings->Application->Development. And in Eclipse Target tab, selected "Always prompt to select device". My ProjectBuildTargetis not newer than my device's version. And tried adb kill-serveralso.
我的设备驱动程序已更新。在我的设备中,我在设置->应用程序->开发中打开了“USB调试模式”,并在设置->应用程序->开发中 打开了“允许安装非市场应用程序”。并在 Eclipse Target 选项卡中,选择"Always prompt to select device"。我的ProjectBuildTarget并不比我的设备版本新。并尝试了adb kill-server。
When i run adb devicesit shows nothing in my command prompt.
当我运行 adb devices 时,它在我的命令提示符中没有显示任何内容。
How do I get Eclipse to load my app to my phone instead of my AVD?
如何让 Eclipse 将我的应用加载到我的手机而不是我的 AVD?
When i tried it in my Mac machine It works perfectly..
当我在我的 Mac 机器上尝试它时它工作得很好..
Any solutions? Please suggest me..
任何解决方案?请建议我..
回答by Ndupza
Please see the link above, the process is defined there from google.
请参阅上面的链接,该过程是从谷歌那里定义的。
回答by Himanshu Joshi
If you are using a MAC OS.... no need to install the Driver
如果您使用的是 MAC OS.... 无需安装驱动程序
But for Windows, try this http://developer.android.com/training/basics/firstapp/running-app.html#RealDevice
但对于 Windows,试试这个http://developer.android.com/training/basics/firstapp/running-app.html#RealDevice
回答by AndyPandy_25Flow
try deleting your AVD and leave your phone connected, then restart your IDE. Make sure you've downloaded the OEM USB drivers. If it still doesn't appear on the list, hit refresh then just run your app.
尝试删除您的 AVD 并保持手机连接,然后重新启动您的 IDE。确保您已下载 OEM USB 驱动程序。如果它仍然没有出现在列表中,点击刷新然后运行你的应用程序。
回答by Kirtikumar A.
close you AVD if its running, then re-plug your Mobile device, check in your phone USB debugging notification should come.
如果它正在运行,请关闭您的 AVD,然后重新插入您的移动设备,检查您的手机 USB 调试通知应该会出现。
回答by GmisraG
Please try the following:
请尝试以下操作:
- Go to settings in your phone
- Go to storage menu
- Select connect as MTP
- 转到手机中的设置
- 进入存储菜单
- 选择连接为 MTP
Worked for me!
为我工作!