Android Studio failed to install the sdk, and the sdk cannot be selected. unable to download gradle

I just downloaded Android Studio and want to change the sdk path, but I can’t change it and can’t download the sdk

见过的错误提示:
android studio first run unable to access.
unable to access android sdk add-on list.
the android sdk location cannot be at the filesystem root.
android studio required component missing.
SDK emulator directory is missing.

Attempt: I changed the proxy and changed the path, but I couldn’t check the sdk(unavailable) when downloading.
Solution: Restart the computer, and I can check it
(speechless, I’ve been working on it all morning, and it’s solved like this, angry)

—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
_
_ I did the following steps
1. Add mirroring
Add the following code under repositories in build.gradle under the project root directory,
maven { allowInsecureProtocol = true url 'https://maven.aliyun.com/nexus/content/groups/public/' } maven { allowInsecureProtocol = true url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' } maven { allowInsecureProtocol = true url 'https://maven.aliyun.com/nexus/content/repositories/google' } maven { allowInsecureProtocol = true url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
as shown in the figure:
insert image description here
insert image description here
2. Update the gradle version configuration in the 3 files
insert image description here

1:
insert image description here
2:
insert image description here
3:
![Insert picture description here](https://img-blog.csdnimg.cn/3144002f33424264ad6af699156260d3.png

Guess you like

Origin blog.csdn.net/peri_liu/article/details/127241205