简体   繁体   English

在Android Studio中将ANDROID_SDK ROOT设置为什么?

[英]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.

相关问题 科尔多瓦:找不到模块“ ./android_sdk” - Cordova: Cannot find module './android_sdk' $ ANDROID_SDK / platforms / android-NNN / data / res / values /中的symbol.xml文件的用途是什么 - What the purpose of the file symbols.xml in $ANDROID_SDK/platforms/android-NNN/data/res/values/ 错误:未设置ANDROID_HOME。 如果已设置,请注意环境变量与ANDROID_SDK冲突 - Error:ANDROID_HOME is not set. If it has been set, please be aware environment variable conflict with ANDROID_SDK 在javafxports中,ANDROID_SDK路径应指向何处? - In javafxports where should the ANDROID_SDK path point to? Flutter Doctor 无法识别我的 ANDROID_SDK 环境变量 - Flutter Doctor not recognizing my ANDROID_SDK environment variables 编译VLC Android失败“你必须在开始之前定义ANDROID_NDK,ANDROID_SDK。” - Compile VLC Android fail “You must define ANDROID_NDK, ANDROID_SDK before starting.” Android Studio 3.1.4 :ANDROID_SDK_HOME 设置为您的 SDK 的根目录 - Android Studio 3.1.4 : ANDROID_SDK_HOME is set to the root of your SDK 如何在 mac 中设置 ANDROID_SDK_ROOT? - How to set ANDROID_SDK_ROOT in mac? 关于android_SDK_ROOT的Android studio虚拟设备错误 - Android studio virtual device error about the android_SDK_ROOT 无法在Android Studio中设置Android SDK路径 - Unable to set Android SDK Path in Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM