打开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环境变量解释,参考:

错误原因:

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

解决方法:

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

BTW:

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

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐