Android Studio 3缺少Android SDK

Android Studio 3缺少Android SDK

问题描述:

我刚刚从官方网站上下载了用于Windows的 Android Studio 3 网站,但在启动时会显示有关缺少Android SDK 的错误消息:

I've just downloaded Android Studio 3 for Windows from the official website, but when it starts, it displays an error message about a missing Android SDK:

当我单击该链接时,它仅重定向到相同的官方网站.没有单独的链接可下载SDK.

When I click that link, it just redirects to the same official website. There isn't a separate link there for SDK download.

我从哪里可以得到它?在安装Android Studio 3的过程中不应该安装Android SDK吗?

Where could I get it from? Shouldn't the Android SDK be installed during Android Studio 3 setup?

显然,问题是在此之前已经安装和卸载了Android Studio 3.0. SDK已删除,但Android Studio的配置未删除.

Apparently, the problem was that Android Studio 3.0 had already been installed and uninstalled before this. The SDK got removed, but Android Studio's config didn't.

从以前的安装中删除配置(C:\Users\<user>\.AndroidStudio3.0文件夹)就可以了. Android Studio启动时,会打开一个对话框,提示您要下载SDK的哪些部分,然后按预期进行.

Removing the config from a previous install (C:\Users\<user>\.AndroidStudio3.0 folder) did the trick. When Android Studio started up, it opened a dialog about which parts of the SDK to download, and then proceeded as expected.