退出代码为1的处理完成:未知的AVD名称 [英] Process finished with exit code 1 : Unknown AVD name
问题描述
当我尝试运行模拟器时,出现以下错误消息:
I have the following error that pops up when I try to run the emulator:
仿真器:仿真器:错误:未知的AVD名称[Nexus_5X_API_27],请使用 -list-avds查看有效列表.
Emulator: emulator: ERROR: Unknown AVD name [Nexus_5X_API_27], use -list-avds to see valid list.
仿真器:进程结束,退出代码为1
Emulator: Process finished with exit code 1
鉴于我刚刚创建了avd,能否帮助我理解为什么找不到它以及如何解决此问题?
Given that I just created the avd, can you help me understand why it cannot find it and how to solve this problem?
预先感谢
推荐答案
无论AVD如何,我都遇到了相同的问题.我太新了,无法理解为什么,但是似乎Android Studio在两个位置创建了/.android/avd
目录:
I experienced the same issue, regardless of the AVD. I'm too new to understand why, but it seems that Android Studio created /.android/avd
directories in two locations:
-
/root/.android/avd
-
/home/USERNAME/.android/avd
/root/.android/avd
/home/USERNAME/.android/avd
创建新AVD时创建的.avd和.ini存储在第一位置,第二位置为空.为了解决此问题,我将每个AVD的.avd和.ini文件都从1复制并粘贴到1(两个文件都必须同时存在,以便AS能够查看和运行该AVD).模拟器随后成功运行.
The .avd and .ini created when creating a new AVD were stored in the 1st location, and the 2nd location was empty. To resolve it, I copied and pasted both the .avd and .ini files for each AVD from 1 to 2 (they needed to be in both in order for AS to see and run the AVD). The emulator then ran successfully.
这篇关于退出代码为1的处理完成:未知的AVD名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!