当前位置:   article > 正文

Android Studio启动AVD报错:The emulator process for AVD Pixel_5_API_30 has terminated.最有效的解决方法_the emulator process for avd pixel 5 api 30has ter

the emulator process for avd pixel 5 api 30has terminated.

Android Studio启动AVD报错:The emulator process for AVD Pixel_5_API_30 has terminated.
在这里插入图片描述
原因:安装时使用自定义安装后,修改了默认安装目录。
而avd文件默认在 C:\Users\用户名.android 目录下。所以导致打开AVD时报错。

解决方法一:
第一步:找到avd所在 .android文件夹,将 .android文件夹复制到SDK目录下。如图:
在这里插入图片描述
在这里插入图片描述
我的SDK安装在 D:\environment\Android\SDK
在这里插入图片描述
第二步:修改系统环境变量
在这里插入图片描述
在这里插入图片描述
变量名称:ANDROID_SDK_HOME
之前旧的 .android 就可以删除了。
重启Android Studio,删除之前的AVD,新建一个AVD。建议建一个与之前不一样的。

在这里插入图片描述

以上部分转自csdn:Android Studio启动AVD报错:The emulator process for AVD Pixel_5_API_30 has terminated.解决方法_qq_43224762的博客-CSDN博客

 解决方法二:

           如果经过上述方法仍未解决,那么请继续以下部分,否则请忽略。

In case if anyone facing this issue. I solved it by:

  • Go to C:\Users\YourUserName\ .android

  • Create a file named advancedFeatures.ini

  • Then add the following lines of code in the file:

    1. Vulkan = off
    2. GLDirectMem = on

以上部分 转自stackoverflow。

意思是,在你的 .android 目录下,新建一个文件 advancedFeatures.ini,文件内容是

  1. Vulkan = off
  2. GLDirectMem = on

 

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/612796
推荐阅读
相关标签
  

闽ICP备14008679号