简体   繁体   English

Android模拟器屏幕冻结

[英]Android emulator screen freeze

I've installed android sdk which I'm using on eclipse. 我已经安装了在eclipse上使用的android sdk。 When i run my application I have the following log: 当我运行我的应用程序时,我有以下日志:

[2011-11-02 15:46:43 - HelloAndroid] Android Launch!
[2011-11-02 15:46:43 - HelloAndroid] adb is running normally.
[2011-11-02 15:46:43 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid   activity launch
[2011-11-02 15:46:43 - HelloAndroid] Automatic Target Mode: Preferred AVD 'AVD1' is     available on emulator 'emulator-5554'
[2011-11-02 15:47:15 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2011-11-02 15:47:15 - HelloAndroid] Installing HelloAndroid.apk...
[2011-11-02 15:49:53 - HelloAndroid] Success!
[2011-11-02 15:49:55 - HelloAndroid] Starting activity  com.example.helloandroid.HelloAndroid on device emulator-5554

And the emulator freezes at 'Andoird' screen. 模拟器冻结在“ Andoird”屏幕上。 I've tried increasing ram and cd size but same result. 我试过增加ram和cd大小,但结果相同。 I've also tried creating new avds, restarting eclipse but nothing seems to work. 我也尝试过创建新的avds,重新启动eclipse,但似乎没有任何效果。 How can I fix this? 我怎样才能解决这个问题? I'm using th efollowing code to create my first app: 我正在使用以下代码创建我的第一个应用程序:

public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
 @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       TextView tv = new TextView(this);
       tv.setText("Hello, Android");
       setContentView(tv);
   }
}

I'm working with windows 7. 我正在使用Windows 7。

It can be due to the emulator locking itself. 这可能是由于仿真器自身已锁定。 Try pressing F7 (Power button) key on the emulator. 尝试按模拟器上的F7 (电源按钮)键。

Now please Edit your ADV in Give size like 2000Mb. 现在,请在“提供大小为2000Mb”中编辑您的ADV。

And make sure you give only those condition that it required. 并确保仅提供所需的条件。

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

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