简体   繁体   English

在Android模拟器上运行应用程序

[英]running application on android emulator

I am trying to run hello world program on andriod emulator using eclipse. 我正在尝试使用Eclipse在Andriod模拟器上运行hello world程序。 emultor starts but my application never loads on emulator. 乳化器启动,但我的应用程序从未加载到模拟器上。 I thought it may be because of my windows version or slow RAM or processor.I am using windows 7 starter 32 bit, 1GB RAM , intel Atom 1.66 Ghz processor.can any one tell me what the problem could be? 我以为可能是因为Windows版本或RAM或处理器速度慢。我使用的是Windows 7入门版32位,1GB RAM和Intel Atom 1.66 Ghz处理器。有人可以告诉我这是什么问题吗?

Please open the task manager and check the process status and CPU usage. 请打开任务管理器,并检查进程状态和CPU使用率。 I guess CPU usage should be 100% when eclipse and emulator are running at the same time. 我猜当eclipse和模拟器同时运行时,CPU使用率应该是100%。

Emulator and Eclipse consume a large amount of memory while running. 仿真器和Eclipse在运行时会消耗大量内存。

Even I faced the same issue. 即使我也面临同样的问题。

Ran the same program in a system with higher RAM and it ran smoothly. 在具有更高RAM的系统中运行同一程序,并且运行平稳。

I guess you are facing the same issue. 我想您正面临着同样的问题。

It will be helpful if you can paste what you are getting in Eclipse console. 如果您可以将所获得的内容粘贴到Eclipse控制台中,将很有帮助。

Try checking the logs in the logcat .It is located in DDMS. 尝试检查logcat中的日志。它位于DDMS中。 It will give you the reason why the emulator is not starting. 它会为您提供模拟器未启动的原因。 And also this problem is either related to a buggy code or a wrongly setup android project configuration. 而且此问题与错误代码或错误设置的android项目配置有关。 Because of slow ram and hardware it may load slowly but it will load eventually. 由于ram和硬件速度较慢,它可能会缓慢加载,但最终会加载。

First check whether the emulator has been recognized by eclipse or not. 首先检查模拟器是否已被Eclipse识别。 You can do it by opening DDMS and see list of devices, if your emulator is listed in devices then run the app. 您可以通过打开DDMS并查看设备列表来完成此操作,如果设备中列出了模拟器,则运行该应用程序。 If the emulator is not listed in Devices then close the current emulator and try to start it again until you see the emulator on devices. 如果设备中未列出该仿真器,请关闭当前仿真器,然后尝试再次启动它,直到在设备上看到该仿真器为止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM