Failed to resolve com.android.support:support-annotations 26.0.1

后端 未结 3 1438
我在风中等你
我在风中等你 2020-12-03 03:03
dependencies {
    compile fileTree(dir: \'libs\', include: [\'*.jar\'])
    androidTestCompile(\'com.android.support.test.espresso:espresso-core:2.2.2\', {
                 


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 03:21

    All current editions of Google libraries reside in Google's Maven repository (maven.google.com), not in the old offline-capable support repositories.

    In your project-level build.gradle file, make sure that your allprojects closure looks like this:

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

    or, on Android Studio 3.0+, like this:

    allprojects {
        repositories {
            jcenter()
            google()
        }
    }
    

提交回复
热议问题