Git项目拉下来编译报错common.jar not find

解决办法
原因:项目的 build.gradle 中 jcenter()中不包含此包,需要讲jitpack.io放在前面
jcenter()
maven { url “https://jitpack.io” }
maven { url ‘https://maven.google.com’ }
maven { url “http://mvn.gt.igexin.com/nexus/content/repositories/releases/” }
maven { url “https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master” }

修改后的顺序

maven { url “https://jitpack.io” }
maven { url ‘https://maven.google.com’ }
jcenter()
maven { url “http://mvn.gt.igexin.com/nexus/content/repositories/releases/” }
maven { url “https://raw.githubusercontent.com/Pgyer/mvn_repo_pgyer/master” }

你可能感兴趣的