HelloAndroid模拟器问题 [英] HelloAndroid emulator problem

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

问题描述

I''m尝试Android SDK中的第一次。 我开始与HelloAndroid教程。完全按照每一个步骤,但没有我的应用程序模拟器启动。 Eclipse控制台说:

I''m trying android SDK for the first time. I'm starting with the HelloAndroid tutorial. followed exactly each step but the emulator launches without my app. eclipse console says:

[2010-02-23 11:47:55 - HelloAndroid]------------------------------
[2010-02-23 11:47:55 - HelloAndroid]Android Launch!
[2010-02-23 11:47:55 - HelloAndroid]adb is running normally.
[2010-02-23 11:47:55 - HelloAndroid]Performing com.example.helloandroid.HelloAndroid activity launch
[2010-02-23 11:47:55 - HelloAndroid]Automatic Target Mode: Preferred AVD 'my_avd' is not available. Launching new emulator.
[2010-02-23 11:47:55 - HelloAndroid]Launching a new emulator with Virtual Device 'my_avd' [2010-02-23 11:48:09 - HelloAndroid]New emulator found: emulator-5554
[2010-02-23 11:48:09 - HelloAndroid]Waiting for HOME ('android.process.acore') to be launched...

我看到模拟器中,'机器人'的文字就可以了,但没有什么事情发生。有人可以帮忙吗?谢谢!

I see the emulator, the ''Android'' text on it but nothing else happens. can someone help please? thanks!

推荐答案

摘要
(你可以看到下面这些步骤总结的全部细节)。

Summary
(You can see the full details below these summarized steps).

  1. 卸载/重新安装的Andr​​oid SDK到文件夹断的C:\(中没有空格 路径)
  2. 重新创建AVD。
  3. 新的Andr​​oid SDK文件夹位置设置PATH环境变量
  4. 卸载/重新安装了Android ADT插件在Eclipse。
  5. 在Eclipse中配置了Android SDK的位置。
  6. 重新启动(降低CPU利用率)
  7. 运行命令行的仿真器,并将其设置为使用高或实时优先级的所有CPU。记下你的CPU使用率。
  8. 开启Eclipse和运行应用程序。
  1. Uninstall/Reinstall Android SDK to folder off of C:\ (no spaces in path)
  2. Re-create the AVD.
  3. Set the PATH environment variable for the new Android SDK folder locations
  4. Uninstall/reinstall the Android ADT Plugin in Eclipse.
  5. Configure the Android SDK location in Eclipse.
  6. Reboot (to reduce the CPU utilization)
  7. Run the emulator from the command line and set it to use all CPUs with High or "Real Time" priority. Make note of your CPU usage.
  8. Open Eclipse and run the app.

详细信息
我花了两天时间让模拟器运行HelloAndroid程序。在我的情况下,问题可能是一个问题了Android SDK安装和CPU性能问题的组合。我认为有些事情是造成模拟器运行极为缓慢使得仿真器似乎挂起。我的电脑是我的Windows 7 64位6GB的英特尔i7处理器的多核心PC。任务管理器显示我的电脑的性能标签上的8个CPU。

Details
I spent two days getting the emulator to run the HelloAndroid app. In my case the problem might have been a combination of an issue with the Android SDK installation and a CPU performance problem. I think something was causing the emulator to run extremely slowly making the emulator appear to hang. My PC is a my Windows 7 64-bit 6GB Intel i7 multi-core PC. Task Manager shows 8 CPUs on my PC on the Performance tag.

我的症状是Android 2.2的AVD在模拟器中出现时,nimatedAndroid的文字被显示在屏幕上挂起。在主屏幕上绝不会出现。这种情况发生了一遍又一遍。我常常会等待30分钟或45分钟无果。

My symptom was the Android 2.2 AVD in the emulator appeared to hang when the nimated "Android" text was showing on the screen. The Home screen would never show up. This scenario happened over and over. I would often wait 30 minutes or 45 minutes to no avail.

我的环境:

  • 在Android的SDK版本12
  • 在Android 2.2的AVD
  • 在Windows 7的64位
  • 的Eclipse IDE for Java Developers的靛蓝发行版号20110615-0604
  • 在Intel酷睿i7多核心CPU,6 GB,1.6 GHz的

我试着开始在命令行模拟器,而不必在命令提示符下启动Eclipse并没有帮助。模拟器还挂。我注意到,任务管理器显示我的盒子在50%的CPU使用率这似乎相当高。 CPU 0被挂在100%。

I tried starting the emulator from the command line without starting Eclipse at the command prompt and that didn't help. The emulator still hung. I noticed that Task Manager showed my box at 50% CPU usage which seemed rather high. CPU 0 was pegged at 100%.

下面就是固定它。

我卸载了Android SDK R12和重新安装它关闭C盘根:在C:\ Android的SDK。我有previously经验的问题,因为Android的SDK是位于C:\ Program Files文件文件夹; 的SDK已经不能处理空间的路径的错误。我跑UNINSTALL.EXE从Android SDK文件夹做了卸载。卸载花的时间比安装。

I uninstalled the Android SDK R12 and reinstalled it off the root of C: at C:\android-sdk. I had previously experienced problems because the Android SDK was located at "C:\Program Files" folder; the SDK has a bug that can't handle the space in the path. I ran "uninstall.exe" from the Android SDK folder to do the uninstall. Uninstalling took longer than installing.

我添加; C:\ Android的SDK \工具\; C:\ Android的SDK \平台工具\到PATH环境变量

I added ";C:\android-sdk\tools\;C:\android-sdk\platform-tools\" to the PATH environment variable.

然后我删除了AVD使用SDK管理器并重新创建它。

I then deleted the AVD using SDK Manager and recreated it.

我卸载了ADT Eclipse插件,重新启动Eclipse的,然后重新安装ADT插件,然后关闭的Eclipse。

I uninstalled the ADT Plugin for Eclipse, restarted Eclipse, then reinstalled the ADT Plugin, then closed Eclipse.

我重新配置的Eclipse用新的Andr​​oid SDK路径(窗口> preferences>安卓> SDK位置)。

I reconfigured Eclipse with the new Android SDK path (Window > Preferences > Android > SDK Location).

在任务管理器进程选项卡,我启用了显示所有用户的进程。我然后右键点击仿真器,arm.exe * 32,然后单击了设置亲和力......,发现该仿真器设置为只使用CPU 0,所以我改成了使用所有的CPU。我还设置了仿真器实时优先级。

On the Task Manager Processes tab, I enabled "Show processes from all users". I then right clicked "emulator-arm.exe *32", then clicked "Set Affinity..." and noticed that the emulator was set to only use CPU 0 so I changed it to use all CPUs. I also set the emulator to "Real Time" priority.

观察50%的CPU使用率,我重新启动。

Observing a 50% CPU Usage, I rebooted.

重启后,我开始仿真器使用命令行:

After rebooting, I started the emulator using the command line:

emulator @Android22

Android22是我的AVD的名称。我用任务管理器来设置亲和力使用所有的CPU,并设置优先级为高仿真器。我的CPU使用率是目前约13%,主要是由于仿真器。模拟器花了约3分钟,以显示主屏幕。好极了!

Android22 is the name of my AVD. I used task manager to set the affinity for the emulator to use all CPUs and set the priority to high. My CPU usage was now about 13%, mostly due to the emulator. The emulator took about 3 minutes to show the Home screen. Yay!

然后我打开Eclipse中的HelloAndroid应用程序,该应用程序成功运行在模拟器。

I then opened Eclipse with the HelloAndroid app and the app successfully ran in the emulator.

我已经详细我做了什么,因为这两天是一个真正的痛苦写出来。我注意到这个问题,很多人似乎不有成功的几个职位。我执行了几个职位提到的步骤,但没有发现所描述的整个过程一个地方。

I have written out in detail what I did because the past two days have been a real pain. I noticed several posts about this issue with many people not seeming to have success. I performed steps mentioned in several posts but did not find one place that described the whole process.

祝你好运。我希望这个信息可以帮助别人。

Good luck. I hope this info helps someone.

这篇关于HelloAndroid模拟器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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