引入外部包时常见说要在项目根目录的build.gradle中添加
allprojects {
repositories {
......
maven { url 'https://jitpack.io' }
}
}
但还是会报错Failed to resolve: com.github.*
最新的androidStudio要到根目录的settings.gradle中去添加
repositories {
......
maven { url 'https://jitpack.io' }
}