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等用戶數據。

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