zoukankan      html  css  js  c++  java
  • 坑爹啊!gradle 2.1构建android出现错误的解决方案

    坑爹啊 浪费了我好长时间,结果是gradle版本不对 

    http://tools.android.com/tech-docs/new-build-system/version-compatibility


    改成

    buildscript {
    
        repositories {
                //mavenCentral()<span style="white-space:pre">	</span>
    <span style="white-space:pre">		</span>//换源
                maven { url "http://maven.oschina.net/content/groups/public/" }
         }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:0.13+'
        }
    }

    改成0.13+妹子的



     Android Studio  Android Gradle Plugin  Gradle
     0.9.+ (still in development)  0.14+ (still in development)  2.1
     0.8.11+  0.13+, 0.12+  2.1 (for plugin 0.13; for 0.12 use 1.10-1.12)
     0.8.0 - 0.8.10  0.12+  1.10 - 1.12
     0.6.0, 0.6.1+  0.11+  1.10 - 1.12
     0.5.8 - 0.5.9  0.9, 0.10  1.10 - 1.12 (1.12 requires plugin 0.10)
     0.5.0 - 0.5.7  0.9  1.10, 1.11
     0.4.3 - 0.4.6  0.7, 0.8  1.9, 1.10 (required for plugin 0.8)
     0.4.0 - 0.4.2  0.7  1.9
     0.3.0 - 0.3.7  0.6   1.8
     0.2.0 - 0.2.13  0.5  1.7


  • 相关阅读:
    迷宫寻宝(自编简单版)
    推荐一个免费翻译接口
    nyoj 82
    poj 3984
    Suffix Tree(后缀树)
    python turtle模块绘图
    python continue语句
    python break语句
    pycharm永久破解激活码
    python while死循环
  • 原文地址:https://www.cnblogs.com/tqj-zyy/p/4559750.html
Copyright © 2011-2022 走看看