Failed to resolve: com.android.support:appcompat-v7:25.1.0

前端 未结 8 1399
情话喂你
情话喂你 2021-02-01 13:18

My Android Studio is full of error android studio cannot identify libraries.

Error:(27, 13) Failed to resolve: com.android.support:appcompat-v7:25.1.0
         


        
8条回答
  •  温柔的废话
    2021-02-01 13:24

    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"
            }
        }
    }
    

    Update:

    allprojects {
        repositories {
            google()
    
            // If you're using a version of Gradle lower than 4.1, you must
            // instead use:
            //
            // maven {
            //     url 'https://maven.google.com'
            // }
        }
    }
    

    See android documention for details

提交回复
热议问题