Android:应用程序未在AVD中预览

Android:应用程序未在AVD中预览,android,eclipse,avd,Android,Eclipse,Avd,我已经研究这个问题两天了,因为我是Android开发的新手。我使用的是Eclipse,当我选择启动应用程序时,AVD启动,屏幕变黑几秒钟,然后动画“Android”出现,在这一点之后什么也没有发生。起初我以为它正在加载,直到我把它打开了将近一个小时,什么也没发生 控制台显示 [2013-01-01 20:52:57 - FirstApp] Android Launch! [2013-01-01 20:52:57 - FirstApp] adb is running normally. [2013

我已经研究这个问题两天了,因为我是Android开发的新手。我使用的是Eclipse,当我选择启动应用程序时,AVD启动,屏幕变黑几秒钟,然后动画“Android”出现,在这一点之后什么也没有发生。起初我以为它正在加载,直到我把它打开了将近一个小时,什么也没发生

控制台显示

[2013-01-01 20:52:57 - FirstApp] Android Launch!
[2013-01-01 20:52:57 - FirstApp] adb is running normally.
[2013-01-01 20:52:57 - FirstApp] Performing com.example.firstapp.MainActivity activity launch
[2013-01-01 20:52:58 - FirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_S_by_Google'
[2013-01-01 20:52:58 - FirstApp] Launching a new emulator with Virtual Device 'AVD_for_Nexus_S_by_Google'`
正如我所说,我对这一点还不熟悉,如果我没有提到任何其他必要的组成部分,那仅仅是因为我不知道还有什么地方可以找到这个解决方案


感谢您的帮助。

对于所有Android初学者来说,这可能是一个非常烦人的问题。 起初,我也习惯于盯着“Android”动画看上几分钟和几个小时,只是好奇

使用ANDROID EMULATOR:

1. Always start the AVD before directly running an application.  
Emulators usually take a considerable amount of time to load before you can  
actually try to run an app.  
2. Change the timeout settings by Window-->Preferences-->Android-->DDMS-->ADB  
Connection TimeOut. Set it to say 50000.  
3. Once the AVD has loaded fully(there is usually a homescreen kind of display  
after the 'Android' animation you mentioned), then run your app as right-click-->  
Run as Android Application  
4.Sometimes, there is a keypad lock on the emulator display just like a phone, so  
you might have to manually unlock the display before you can see the running app    

希望这有帮助。

两个问题:1)如果您正常启动AVD(通过经理),它是否正常启动?2) 如果没有,请尝试从命令行/终端运行emulator,查看它是否输出任何错误消息。好的,当我通过manager启动AVD时,正如我通过AVD启动项目时所描述的那样。然后,在我运行
adb install bin/FirstApp debug.apk之后,通过终端,终端读取:
错误:未找到设备-等待设备-
从终端启动模拟器(这与adb无关)。尝试执行
emulator-avd
,查看是否出现任何消息。我甚至不知道emulator是一个命令。不管是谁,我运行emulator-avd FirstApp
并得到:
PANIC:无法打开:FirstApp
如果我键入emulator,我会得到
PANIC:缺少特定于arch的emulator程序:emulator arm
我甚至无法从中获得--help选项。这有人吗?谢谢!所以我有几个问题。那么我在应用程序之前启动AVD?那么,这是否意味着每当我向我的应用程序添加新的更改时,我都会再次右键单击RunAs Android应用程序?谢谢你的帮助!我发现这个错误
[2013-01-02 16:53:37-Emulator][2013-01-02 16:53:39-MyFirstApp]新的Emulator发现:Emulator-5556[2013-01-02 16:53:39-MyFirstApp]正在等待HOME('android.process.acore')启动…
这发生了很多次,但它从未启动过=/