android eclipse错误 [英] android eclipse error

查看:124
本文介绍了android eclipse错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我在eclipse(indigo)中编写android代码.我要运行该程序,但看到此错误:

找不到DNS服务器模拟器.

请帮助我调试此错误.
感谢''s

hi.
i write android code in eclipse(indigo).i going to run this program but i see this error :

DNS server Emulator not found.

please help me for debug this error.
thank''s

推荐答案

我认为因为无法连接到模拟器,请尝试先启动模拟器,如果在eclipse中配置了android,则在eclipse中运行您的项目(我的意思是,如果您具有ADT插件).

(不要忘了使用avd管理器创建图像)

(*我有一个类似的问题,当我从eclipse,eclipse冻结运行android项目时,这种方法对我有帮助)
I think because can''t connect to emulator, try to start emulator first, and run your project in eclipse if android is configured in eclipse (i mean if you''ve ADT plugin).

(don''t forget to create an image, using avd manager)

(*I''ve a similar problem, when I run android project from eclipse, eclipse freeze, and this method has helped me)


有时候,仿真器需要很长时间才能启动,并且Eclipse IDE在启动之前会超时.在这种情况下,弹出命令提示符并执行
> adb kill-server
>亚行启动服务器
模拟器完全启动后.现在,您应该可以通过从IDE启动新的调试会话来连接到仿真器.

您可以在Android安装目录下的子目录工具"或平台工具"下找到adb命令,具体取决于您的版本. adb是Android调试桥,可将Eclipse调试器与您的首选设备连接.
Sometimes the emulator takes too long to start, and the Eclipse IDE times out before its started. In this case, bring up a command prompt, and execute
> adb kill-server
> adb start-server
once the emulator has been completely started. Now you should be able to connect to the emulator by starting a new debug session from the IDE.

The adb command can be found in your android installation directory under the sub-directory ''tools'', or ''platform-tools'', depending on your version. adb is the Android Debug Bridge, which connects the eclipse debugger with your preferred device.


这篇关于android eclipse错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆