[英]What to set ANDROID_SDK ROOT to in Android Studio?
This is the error I am getting. 这是我得到的错误。
emulator: ERROR: This AVD's configuration is missing a kernel file!! 仿真器:错误:此AVD的配置缺少内核文件! emulator: ERROR: ANDROID_SDK_ROOT is undefined
模拟器:错误:ANDROID_SDK_ROOT未定义
You can view your system variables if you search for "environment variables" in the Start Menu. 如果在“开始”菜单中搜索“环境变量”,则可以查看系统变量。 See here for more information .
有关更多信息,请参见此处 。
Then once you have that open, add a variable for ANDROID_SDK_ROOT
. 然后,一旦打开,为
ANDROID_SDK_ROOT
添加一个变量。 Android Studio should have done this all for you, but depending on where you have downloaded the Android SDK tools , you need to set the value for that variable to the path of the SDK folder, such as C:\\Users\\myusername\\Downloads\\android-sdk
. Android Studio应该已经为您完成了所有操作,但是根据您下载Android SDK工具的位置 ,您需要将该变量的值设置为SDK文件夹的路径,例如
C:\\Users\\myusername\\Downloads\\android-sdk
。
First make sure you have the Android SDK downloaded (most likely this is already done). 首先,请确保您已下载Android SDK(很可能已经完成)。 Then figure out where it is saved and make a note of that directory it is downloaded to.
然后找出该文件的保存位置,并记下该文件的下载目录。 Finally go to the "Project Structure" on the File menu and choose the "SDK Location" bar and set the the Android SDK Location field to where the SDK is downloaded.
最后,转到“文件”菜单上的“项目结构”,然后选择“ SDK位置”栏,并将Android SDK位置字段设置为SDK的下载位置。
Kaamel 卡梅尔
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.