错误:
Unknown host ‘d29vzk4ow07wi7.cloudfront.net‘. You may need to adjust the proxy settings in Gradle.
intellij idea 创建Android提示Could not download protobuf-java.jar或者gradle project sync failed.basic func
1.下载protobuf-java.jar对应的版本
https://jcenter.bintray.com/com/google/protobuf/protobuf-java/
2.把protobuf-java.jar添加到Dependencies
可以参看:https://blog.****.net/zhang8907xiaoyue/article/details/83687941
3.修改build.gradle文件
allprojects {
repositories {
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
google()
jcenter()
}
}
jcenter()
maven { url "https://jitpack.io" }
google()
jcenter()
}
}
参考:
https://blog.****.net/qq_15988951/article/details/84726934