Failed to resolve: com.android.support:design-v7:27.1.1

前端 未结 6 1756
故里飘歌
故里飘歌 2021-01-19 06:09

I am using Android Studio 3.1.3. Gradle build sync failed. I used following method but there is no use of it. If there is any solution please tell me

6条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-19 06:50

    Don't

     implementation 'com.android.support:design-v7:27.1.1'
     buildToolsVersion '27.1.1'
    

    Do

    implementation 'com.android.support:design:27.1.1'
    buildToolsVersion '27.0.3'
    

    Make sure, you added below

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

    Then Clean-Rebuild-Build.

提交回复
热议问题