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