When I updated my Android Studio to the latest, I got the same problem. Here is how I solved it.

First:Add the following code to the top of your build.gradle:

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.0' } } allprojects { repositories { jcenter() } }

Second:Find the gradle-wrapper.properties. Change the last sentence to this:

distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip

Hope this works for you.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)library projects cannot b
  2. android bitmap的放大缩小
  3. android获取手机cpu是单核还是多核的方法
  4. Protobuf 在android的使用
  5. android APK签名过程之CERT.RSA分析
  6. 一个功能强大的RecyclerViewAdapter 适配
  7. Install Ubuntu 13 and Android ADT in W
  8. Android中NDK的so文件产生和使用
  9. OpenJDK 1.8的安装,build Android N
  10. android 多线程断点下载,listview 模式 开