Can't find Android Support Repository in SDK M

2020-02-11 17:27发布

I am following this: https://developer.android.com/sdk/installing/adding-packages.html At step 2, I can't seem to find an option to download Android Support Repository in the Extras folder.

enter image description here

In the extras folder, you can see there's no option to download it. Am I doing anything wrong?

8条回答
趁早两清
2楼-- · 2020-02-11 18:10

As of today, the android support libraries are now available through Google's Maven repository. reference: https://developer.android.com/topic/libraries/support-library/setup.html

by adding maven section in repositories tag in build.gradle of project.

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}
查看更多
Emotional °昔
3楼-- · 2020-02-11 18:13

I also faced the same problem. You should update your Android SDK Tools and Android SDK Platform-tools. That will bring the option of Support Repository.

查看更多
登录 后发表回答