0

我已经处理这个问题两天了,因为我是 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'`

正如我所说,我对此并不陌生,如果我没有提及任何其他必要的组件,那仅仅是因为我不知道在哪里可以找到这个解决方案。

感谢您的任何帮助。

4

1 回答 1

0

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

使用安卓模拟器:

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    

希望这可以帮助。

于 2013-01-02T07:00:44.963 回答