欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

Android虚拟机打不开解决方法

程序员文章站 2022-06-23 16:43:14
我的问题是虚拟机启动就会崩溃,错误忘记截屏。。解决办法。在某个盘符下创建一个文件夹,注意名字和路径不要用中文。在用户环境变量里增加一个ANDROID_AVD_HOME 变量重启电脑,重新打开AVD创建个虚拟机,打开试试。......

Android虚拟机打不开解决方法
解决办法
创建的时候Graphics 选择 software - GLES 2.0就可以了
Android虚拟机打不开解决方法
如果不能选
Edit the config.ini file of the AVD. Under Linux it’s located under /home//.android/avd//config.ini (in my case is Nexus_5X_API_29.avd).

In a text editor change the lines

hw.gpu.enabled=no
hw.gpu.mode=auto
either to

hw.gpu.enabled=no
hw.gpu.mode=off
or to

hw.gpu.enabled=yes
hw.gpu.mode=host
This setting remains even if opened in the Android Virtual Device Manager of Android Studio. It’s just not editable there.

I also tried this, which I found in another AVD:

hw.gpu.enabled=yes
hw.gpu.mode=software
But this is then changed to “no” / “off” by the Android Virtual Device Manager. I didn’t look any further so far. hw.gpu.mode=off worked for me. Otherwise my whole Kubuntu hangs (using the Nouveau driver, not the NVidia driver)

参考:https://*.com/questions/62277774/android-emulator-on-windows-10

本文地址:https://blog.csdn.net/qq_39108094/article/details/110691377