Android的AVD启动错误 [英] Android AVD starting error

查看:109
本文介绍了Android的AVD启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我开始在Android Studio中的AVD我收到此错误。
任何帮助将是AP preciated。也无法启动机器人工作室除了从终端。

I am getting this error when i start an avd in android studio. Any help would be appreciated. And also unable to start android studio except from terminal.

惊慌:首页的定义,但无法找到 Nexus_4_API_21.ini 文件 $ HOME / .android / AVD
(注:AVD中搜索的顺序 $ ANDROID_AVD_HOME,$ ANDROID_SDK_HOME / .android / AVD和$ HOME / .android / AVD

PANIC: HOME is defined but could not find Nexus_4_API_21.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd)

推荐答案

在我的情况,我已经安装了特别的Andr​​oid工作室在我的D:驱动器(用于空间的原因)。在我安装, AVD 目录是位于 D:\\ MyInstall \\ .android \\ .avd

In my case, I had especially installed Android Studio on my D: drive (for space reasons). On my installation, the avd directory was located in D:\MyInstall\.android\.avd

对我来说,解决办法是定义Windows环境变量(用户变量)变量名:在 ANDROID_SDK_HOME 和变量值: D:\\ MyInstall

The solution for me was to define a Windows environment variable (user variable) with Variable name: ANDROID_SDK_HOME and Variable value: D:\MyInstall

我重新启动的Andr​​oid Studio和仿真工作。

I restarted Android Studio and the emulator worked.

这似乎是在Android Studio安装中的错误,因为我明确指出了D:在安装向导的位置。安装程序应该可能已经设置此变量。

This appears to be a bug in the Android Studio installer, since I explicitly stated the D: location in the install wizard. The installer should probably have set this variable.

这篇关于Android的AVD启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆