Failed to resolve: com.android.support.design:25.4.0

后端 未结 11 1384
误落风尘
误落风尘 2020-12-01 07:30

I added the following line to my build.gradle(Module:app):

compile \'com.android.support:design:25.4.0\' 

But when executing Gradle I\'m ge

11条回答
  •  囚心锁ツ
    2020-12-01 07:38

    Important: The support libraries are now available through Google's Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup.

    Step 1: Open the build.gradle file for your application.

    Step 2: Make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint. For example:

    allprojects {
        repositories {
            jcenter()
            maven {
                url "https://maven.google.com"
            }
        }
    }
    

    Step 3: Add the support library to the dependencies section. For example, to add the v4 core-utils library, add the following lines:

    dependencies {
        ...
        compile "com.android.support:support-core-utils:25.4.0"
    }
    

提交回复
热议问题