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