简体   繁体   English

Android Hello World程序花费太多时间来运行

[英]android hello world program taking too much time to run

I had followed android developer forum for installation and done all the steps. 我已按照android开发人员论坛进行安装并完成了所有步骤。 But finally when i try to run the application , it is just handing on "ANDROID" black screen with below message on console 但是最后,当我尝试运行该应用程序时,它只是将“ ANDROID”黑屏显示在控制台上,并显示以下消息

[2011-10-09 23:59:27 - HelloAndroid] Android Launch!
[2011-10-09 23:59:27 - HelloAndroid] adb is running normally.
[2011-10-09 23:59:27 - HelloAndroid] Performing my.mobile.test.HelloAndroidActivity activity launch
[2011-10-09 23:59:27 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-10-09 23:59:27 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-10-09 23:59:33 - HelloAndroid] New emulator found: emulator-5554
[2011-10-09 23:59:33 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...

It already took 15-20 min and still hanging there. 已经花了15-20分钟,仍然挂在那里。 Am i missing anything. 我错过了什么吗? Please suggets 请建议

在此处输入图片说明

From the looks of your screen shot you are running an emulator with android 3.0 in a tablet configuration. 从屏幕快照的外观来看,您正在平板电脑配置中运行带有android 3.0的模拟器。 There are many problems with the android 3.0 emulator in terms of speed and reliability. android 3.0模拟器在速度和可靠性方面存在许多问题。 For testing a program as simple as the one you describe create a new emulator using avd with the target sdk as 2.3 or earlier with maybe a WVGA screen. 为了测试您描述的程序一样简单的程序,请使用avd创建一个新的模拟器,目标sdk为2.3或更早版本,并使用WVGA屏幕。 This should work fine for testing your code. 这应该可以很好地测试您的代码。

I had the same issue but what I have done is to start the emulator (in avd manager) and after that, I deployed the application and it works fine. 我遇到了同样的问题,但是我要做的是启动模拟器(在avd管理器中),然后,我部署了该应用程序,它运行良好。

Regards. 问候。

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

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