在新建项目的时候Android studio报错:Could not GET ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.pom’. Received status code 400 from server: Bad Request
Enable Gradle ‘offline mode’ and sync project
如下图:

出现这个错误的注意原因是电脑中gradle的代理导致的。
打开.gradle下的gradle.properties取消本地代理,如图所示:

然后打开gradle.properties文件,把里面的代理设置注释或者删除即可。下图红色框里面起初是没有注释的,把他注释了就可以,重新编译即可。

更多相关文章

  1. Android(安卓)UI布局中设置了fill_parenet仍然没有全屏的解决办
  2. Android(安卓)UI布局中设置了fill_parenet仍然没有全屏的解决办
  3. Android Studio 自动更新失败解决方法
  4. Android系统启动流程(4) —— 解析Launcher启动过程
  5. android 输入法出现挤压屏幕、android输入键盘覆盖了屏幕控件的
  6. 解决Could not find manifest-merger.jar问题
  7. Android下修改ImageButton样式
  8. android Android(安卓)build.gradle 配置注释
  9. Android(安卓)5.0 Lollipop SDK下载地址

随机推荐

  1. ant编译android工程taskdef class not fo
  2. android ListView几个比较特别的属性
  3. 我要一步一步往上爬——Android应用实例
  4. Android:SwipeRefreshLayout+RecyclerVie
  5. Description Resource Path Location Typ
  6. Android调用系统Activity选取图像部分区
  7. android 4种存储方式
  8. Android中的四种启动方式
  9. Android studio使用Lottie- 让Android动
  10. android 自定义dialog,窗口动画