在使用AS过程中,先后经历了SDK配置,但是这种小问题怎么能难道我,难到我的都是难搞的。比如
Error:A problem occurred configuring project ‘:app’.
Could not download junit.jar (junit:junit:4.12)
Could not get resource ‘https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar’.
Could not GET ‘https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar’.
peer not authenticated
好了,说结论,我的AS是通过在demo中配置
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
google()
jcenter()
}
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
google()
jcenter()
大家自己试试吧