异常

Error:Could not find com.android.tools.build:gradle:2.2.2.Searched in the following locations:    https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom    https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.jarRequired by:    :ListViewAnimations-master:unspecified

解决方法

在项目的根目录的build.gradle文件中的buildscript->repositories节点下添加jcenter(),然后更新依赖。

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

更多相关文章

  1. Android之USB Camera摄像头节点后移
  2. Android清单文件详解(六) ---- 节点的属性
  3. android 获取sd卡根目录
  4. android通过USB的MTP模式下,禁止用户在根目录有任何操作(重命名 删
  5. android 获取外置sd卡根目录
  6. Android 上层应用读写底层设备节点(Android M)
  7. Android 框架之创建设备节点文件
  8. 遍历android根目录的简单资源查看器
  9. Android TimeLine 时间节点轴的实现

随机推荐

  1. android console 常见信息
  2. android 小米时钟的实现
  3. android download file and save to sdCa
  4. Android特有的数据结构分析
  5. (Android)处理图片成圆形
  6. android 三种定位方式 设计思路
  7. Android(安卓)RenderScript 的使用基础篇
  8. Android(安卓)studio 使用心得(十)---and
  9. android List拖动时背景变化
  10. Android(安卓)ORM 框架——GreenDao的基