首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gradle with AIDE-IDE

Gradle with AIDE-IDE
EN

Stack Overflow用户
提问于 2017-08-23 22:17:58
回答 2查看 2.4K关注 0票数 1

有没有办法更新Gradle的版本,因为AIDE中使用的是版本1。

许多函数都不适用。

代码语言:javascript
复制
   // Top-level build file where you can add configuration options common to all sub-projects/modules.

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

            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }

    allprojects {
        repositories {
            jcenter()
        }
    }
EN

回答 2

Stack Overflow用户

发布于 2018-07-01 17:26:17

尝试删除该行:

代码语言:javascript
复制
classpath 'com.android.tools.build:gradle:1.+' 

如果这样还不能解决问题,请将此行复制到build.gradle:

代码语言:javascript
复制
classpath 'com.android.tools.build:gradle:3.0.1'
票数 0
EN

Stack Overflow用户

发布于 2018-07-01 17:40:56

更新android构建工具至最新版本:

代码语言:javascript
复制
classpath 'com.android.tools.build:gradle:3.1.3'

还要在构建脚本中添加google()。所以更新你现有的代码,如下所示:

代码语言:javascript
复制
// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }

    allprojects {
        repositories {
            google()
            jcenter()
        }
    }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45842326

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档