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

Android studio安装后新建项目出错

 

 

 可以参看:https://blog.****.net/zhang8907xiaoyue/article/details/83687941

3.修改build.gradle文件

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

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

 

 

Android studio安装后新建项目出错

上一篇:Android Studio学习记录-第三周


下一篇:Mybatis通用Mapper介绍与使用