1 问题
编译第三方项目,错误提示如下
Could not find com.android.support:appcompat-v7:25.3.1.
Required by:project :sampleproject :sample > com.yanzhenjie:permission:1.0.7project :sample > com.yanzhenjie.alertdialog:alertdialog:1.0.1
Search in build.gradle files
2 解决办法
添加如下代码
maven { url "https://maven.google.com" }//添加这个就可以
allprojects {repositories {jcenter()maven { url "https://maven.google.com" }//添加这个就可以}
}