ERROR: Failed to resolve: com.github.****   報錯

ERROR: Failed to resolve: com.github.****   報錯

原因之一:

maven { url "https://jitpack.io" }   maven 加錯地方

我們整個工程的build中。 一看有兩個repositories;

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        //需要把maven加在這裏
        maven { url "https://jitpack.io" }
    }
}

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章