ANDROID_SDK_HOME设置错误

打开AndroidStudio后,错误提示如下:

SDK Validation

ANDROID_SDK_HOME is set to the root of your SDK: C:\Users\romulus\AppData\Local\Android\Sdk This is the path of the preference folder expected by the Android tools. It should NOT be set to the same as the root of your SDK. Please set it to a different folder or do not set it at all. If this is not set we default to: C:\Users\romulus

Android环境变量解释,参考:

https://developer.android.google.cn/studio/command-line/variables

错误原因:

将ANDROID_SDK_HOME变量指向了sdk的安装目录

解决方法:

使用ANDROID_SDK_ROOT变量指向sdk的安装目录

BTW:

ANDROID_SDK_HOME指向的目录,应该是用来存储avd等用户数据。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章