Android模拟器无法启动

时间:2021-05-02 18:54:49

I just installed Intel HAXM and updated my Android SDK Tools to revision 24.1.2 successfully. Then I restarted my PC, and ran the emulator. Unfortunately, I my emulator won't starting up, always stuck. Waiting for ~1 hour, the emulator still getting stuck. Sometimes the screen was black, didn't show anything even the ANDROID logo while emulator was booting (full of black color). My screenshot:

我刚安装了英特尔HAXM并成功将我的Android SDK工具更新到版本24.1.2。然后我重新启动了我的电脑,并运行了模拟器。不幸的是,我的模拟器不会启动,总是卡住。等待约1个小时,模拟器仍然卡住了。有时屏幕是黑色的,在模拟器启动时(甚至充满黑色),甚至没有显示任何ANDROID标志。我的截图:

Android模拟器无法启动

The second problem is, as you can see in the figure, this is an abnormal behavior. There's no title bar, because it hides on the top of my desktop. So I can't move the emulator window to the center of my desktop.

第二个问题是,如图所示,这是一种异常行为。没有标题栏,因为它隐藏在桌面的顶部。所以我无法将模拟器窗口移动到桌面的中心。

From the Console, it seems that Android Studio is waiting for the emulator to finish its start up:

从控制台,似乎Android Studio正在等待模拟器完成其启动:

Android模拟器无法启动

What have I tried:

我试过了什么:

  • Restarted my PC.
  • 重启了我的电脑。

  • Followed this answer.
  • 跟着这个回答。

  • Check and uncheck Use host GPU option in AVD.
  • 选中并取消选中AVD中的使用主机GPU选项。

  • Re-build my emulator in AVD.
  • 在AVD中重建我的模拟器。

  • Closed the emulator and ran it again.
  • 关闭模拟器并再次运行它。

  • Changed CPU/ABI to ARM and Intel Atom x86 in AVD.
  • 在AVD中将CPU / ABI更改为ARM和Intel Atom x86。

Can you help me to solve these problems?

你能帮我解决这些问题吗?

3 个解决方案

#1


0  

Have you tried with a different\more recent Android version?

您是否尝试过使用其他\更新的Android版本?

I suggest you to switch to Genymotion. It's free for personal use and it very better than AVD: it's faster, you can drag and drop files and much more.

我建议你切换到Genymotion。它是免费供个人使用,它比AVD更好:它更快,你可以拖放文件等等。

#2


0  

I asked my mom to pray for me to solve these problems, and I found the solution then, hehe :P

我让妈妈为我祈祷解决这些问题,然后我找到了解决方案,呵呵:P

So these problems happened because of the skin of emulator I selected in AVD was WQVGA432. Then I changed (edited) the emulator's skin in AVD to WQVGA400 and WQVGA800 to test the result, and it really works for both of them. I think, the only skin which has broken is WQVGA432. If you also had these problems, I suggest you to never select WQVGA432 skin or try another skins.

所以这些问题的发生是因为我在AVD中选择的仿真器皮肤是WQVGA432。然后我将AVD中的仿真器皮肤更改(编辑)为WQVGA400和WQVGA800以测试结果,它确实适用于它们。我认为,唯一破碎的皮肤是WQVGA432。如果您也有这些问题,我建议您永远不要选择WQVGA432皮肤或尝试其他皮肤。

Now, I can move the emulator window normally and debug my app.

现在,我可以正常移动模拟器窗口并调试我的应用程序。

#3


0  

Try updating Android Studio and re-download the image file from SDK

尝试更新Android Studio并从SDK重新下载图像文件

#1


0  

Have you tried with a different\more recent Android version?

您是否尝试过使用其他\更新的Android版本?

I suggest you to switch to Genymotion. It's free for personal use and it very better than AVD: it's faster, you can drag and drop files and much more.

我建议你切换到Genymotion。它是免费供个人使用,它比AVD更好:它更快,你可以拖放文件等等。

#2


0  

I asked my mom to pray for me to solve these problems, and I found the solution then, hehe :P

我让妈妈为我祈祷解决这些问题,然后我找到了解决方案,呵呵:P

So these problems happened because of the skin of emulator I selected in AVD was WQVGA432. Then I changed (edited) the emulator's skin in AVD to WQVGA400 and WQVGA800 to test the result, and it really works for both of them. I think, the only skin which has broken is WQVGA432. If you also had these problems, I suggest you to never select WQVGA432 skin or try another skins.

所以这些问题的发生是因为我在AVD中选择的仿真器皮肤是WQVGA432。然后我将AVD中的仿真器皮肤更改(编辑)为WQVGA400和WQVGA800以测试结果,它确实适用于它们。我认为,唯一破碎的皮肤是WQVGA432。如果您也有这些问题,我建议您永远不要选择WQVGA432皮肤或尝试其他皮肤。

Now, I can move the emulator window normally and debug my app.

现在,我可以正常移动模拟器窗口并调试我的应用程序。

#3


0  

Try updating Android Studio and re-download the image file from SDK

尝试更新Android Studio并从SDK重新下载图像文件