这是Android的工作室错误或我做错了什么? [英] Is this Android Studio bug or am I doing wrong?
问题描述
我有我的Ubuntu机器在Android工作室的设置,现在每当我试图启动模拟器,它会抛出异常一样:
I have android studio setup on my Ubuntu machine and now whenever I try to start the emulator, it throws exception like:
在模拟器无法启动AVD。
Cannot launch AVD in emulator.
输出:
惊慌:找不到
Nexus_S_API_21.ini文件$ ANDROID_AVD_HOME $也不在$ HOME。/安卓/ AVD
PANIC: Could not find Nexus_S_API_21.ini file in $ANDROID_AVD_HOME$ nor in $HOME./android/avd
所以,当我做的:
echo $ANDROID_AVD_HOME
它显示为空,这意味着这条道路没有设置,当 $ HOME
是我的 / home / user中
所以,当我在 /home/user/.android/avd
去实在没有的.ini
文件。所以,我很困惑,当我创建一个虚拟设备,它在哪里去了?我如何才能找到那里正在创建虚拟设备和可能的话,我怎么可以改变创建虚拟设备的路径路径?
So when I go in /home/user/.android/avd
there is really no .ini
file. So, I am confused, when I create a virtual device, where does it go? How can I find the path where virtual devices are being created and if possible, how can I change the path to create virtual devices?
推荐答案
您可以在AVD管理器(GUI)的AVD的* .ini文件的位置。
右标签下的Android的虚拟设备
有行位于%这里现有的Android虚拟设备列表中的位置%
。
You can find location of your avd's *.ini files in AVD Manager (GUI).
Right under tab "Android Virtual Devices"
there is line "List of existing Android Virtual Devices located at %here is the location%"
.
您可以尝试系统变量%android_avd_home%
更改为类似 / home / user中
,例如和然后重新启动IDE(Android的一室公寓)。
You can try to change system variable %android_avd_home%
to something like /home/user
, for example and then restart IDE (Android Studio).
此外,您还可以尝试在这里找到有用的信息: HTTPS://$c$c.google.com/p/android/issues/detail ID = 78577
Also, you can try to find useful information here: https://code.google.com/p/android/issues/detail?id=78577
希望它能帮助
这篇关于这是Android的工作室错误或我做错了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!