有求必应

导航

Android studio安装后新建项目出错

错误:

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.csdn.net/zhang8907xiaoyue/article/details/83687941

3.修改build.gradle文件

allprojects {
    repositories {
        mavenCentral()
        jcenter()
        maven { url "https://jitpack.io" }
          google()
          jcenter()
    }
}
 
参考:

https://blog.csdn.net/qq_15988951/article/details/84726934

 

 

posted on 2020-01-06 10:42  名侦探江户川  阅读(650)  评论(0编辑  收藏  举报