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

后端 未结 11 1382
误落风尘
误落风尘 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:35

    A more updated version of the answer of "Bhavesh Patadiya" :

    1. In your project build.gradle file, add google() into the repositories blocks:

      repositories {
          jcenter()
          google()
      }
      
    2. Update the same file with a newer Gradle version:

      classpath 'com.android.tools.build:gradle:2.3.3'
      
    3. If the above cause you new issues or the same issue, exit Android-Studio, and delete the "gradle" folder/s (maybe also ".gradle" folder) and the "build" folder and sub-folders, and then open Android-Studio again.

提交回复
热议问题