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:
2. Update the gradle version configuration in the 3 files
1:
2:
3: