Java Adb 连接错误:EOF(android 中的新功能)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21107455/
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
Adb connection Error:EOF (new in android )
提问by AM26
and trying to make a project in which my app will be connected to the database and will fetch the required values as I command it to do.
并尝试创建一个项目,在该项目中我的应用程序将连接到数据库,并按照我的命令获取所需的值。
I just made the designing part and tried to run it and see it.
我刚刚制作了设计部分并尝试运行它并查看它。
But its giving an error: Adb connection Error:EOF
但它给出了一个错误:Adb connection Error:EOF
please help me to solve it
请帮我解决它
My Android Console shows:
我的 Android 控制台显示:
[2014-01-14 12:30:33 - Emulator] error libGL.so: cannot open shared object file: No such file or directory
[2014-01-14 12:30:33 - Emulator] Failed to load libGL.so
[2014-01-14 12:30:33 - Emulator] error libGL.so: cannot open shared object file: No such file or directory
回答by nitesh
Well you could try this out:
那么你可以试试这个:
- Open your cmd .Go to Platform-tools/ path
- Run the cmd like : adb kill-server
- Then : adb start-server
- Restart the Eclipse
- 打开你的 cmd .Go to Platform-tools/ path
- 像这样运行 cmd:adb kill-server
- 然后: adb start-server
- 重启 Eclipse
Also Delete the AVD and Create the New One if above don't Work
如果以上不起作用,也删除 AVD 并创建新的
Hope this could help...
希望这可以帮助...
回答by Simon Xu
Please setting up the development mode for your test-device-phone .if it is not work, your could try restart your eclipse
请为您的 test-device-phone 设置开发模式。如果它不起作用,您可以尝试重新启动您的 eclipse
回答by Crabime
ok, i have seen all people answer such question under eclipse, but actually i met it in android studio. Here is my working out step:
好的,我已经看到所有人都在 eclipse 下回答了这样的问题,但实际上我是在 android studio 中遇到的。这是我的锻炼步骤:
- open android device monitor and watch system output, error like above
- open the terminal button in android studio where you can find it in left bottom and click the button then find the terminal.
adb kill-server
adb devices
(here is the success status output)daemon not running. starting it now on port 5037 *
daemon started successfully *
- 打开android设备监视器并观察系统输出,错误如上
- 在android studio中打开终端按钮,您可以在左下角找到它,然后单击该按钮然后找到终端。
adb kill-server
adb devices
(这里是成功状态输出)守护进程没有运行。现在在端口 5037 上启动它 *
守护进程成功启动 *
Attention:if you do such behavior in your mac terminal or windows cmd.it's useless, i have tried that way and restart android studio finally failed.
注意:如果你在你的 mac 终端或 windows cmd.it 中做了这样的行为。它是无用的,我已经尝试过这种方式并重新启动 android studio 最终失败了。