最近在打开Android emulator时,总会提示“Emulator window was out of view and was recentred ”,然后无法打开模拟器,但是可以使用Win7的透视功能看到,就是无法打开显示在界面上。上网查找了一下,大致解决方案如下:

翻译自网站:http://android.okhelp.cz/

如果你遇到类似下面的错误:

Emulator window was out of view and was recentred
Emulator] WARNING: Data partition already in use. Changes will not persist!
Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\user_name\.android\avd\hvga21_up1_7.avd/sdcard.img
Emulator] WARNING: Cache partition already in use. Changes will not persist!

基本的尝试方法:重启Eclipse,方法File—>Restart

其他解决方案:

1:尝试重启ADB服务

详情请参考:

http://android.okhelp.cz/how-quickly-restart-adb-exe-adb-server-android-emulator-example/

2:删除Run Configuration,在Run—>Run Configuration中,选择删除已经配置的Activity。

本人在亲测中,并没有删除配置,只是改变了Target中的选项便解决了问题。

详细请参考:http://android.okhelp.cz/android-emulator-wont-run-application-started-from-eclipse/

3:尝试删除你的.android文件下的一些镜像文件。下面以默认安装路径为例,你可以删除一下文件试一试:

c:\Documents and Settings\user_name\.android\avd\my_avd.avd\cache.img
c:\Documents and Settings\user_name\.android\avd\my_avd.avd\userdata-qemu.img

相关文章:

  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-06-15
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-13
  • 2021-06-08
  • 2021-04-09
  • 2021-06-18
  • 2022-12-23
  • 2022-01-16
  • 2021-09-12
相关资源
相似解决方案