为什么我会收到"摇篮&QUOT的不受支持的版本;与Android Studio中的教程应用程序? [英] Why am I getting "unsupported version of Gradle" with the tutorials app in Android Studio?

查看:283
本文介绍了为什么我会收到"摇篮&QUOT的不受支持的版本;与Android Studio中的教程应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试导入教程应用到Android Studio中,我得到这个消息:

When I try to import the tutorials app to Android Studio, I get this message:

该项目采用摇篮不受支持的版本。

The project is using an unsupported version of Gradle.

请指向支持的摇篮版本在项目的摇篮设置,或在项目的摇篮包装(如适用)。

Please point to a supported Gradle version in the project's Gradle settings or in the project's Gradle wrapper (if applicable.)

我是新来的Andr​​oid Studio和米了。什么是与摇篮问题?

I’m new to Android Studio, and meter too. What’s the problem with Gradle?

我使用的Andr​​oid 1.0.1工作室

I’m using Android Studio 1.0.1.

推荐答案

Android的工作室1.0.1支持gra​​dle这个2.2.1+和Android摇篮插件1.0.0 +

Android Studio 1.0.1 supports gradle 2.2.1+ and Android Gradle Plugin 1.0.0+

如何更改版本的Gradle

在你的项目,你应该有一个文件夹的 gradle这个/包装的。
在里面你会发现 gradle-wrapper.properties 文件。

In your project you should have a folder gradle/wrapper. Inside you will find the gradle-wrapper.properties file.

将里面

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

如何改变gradle这个插件版本:

在你的项目,你应该在根文件夹的build.gradle 文件。

In your project you should have a build.gradle file in the root folder.

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()   // or mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'        
    }
}

留意。每个模块都有一个自己的build.gradle文件。在里面你可以覆盖默认配置。

Pay attention. Each module has a own build.gradle file. Inside you can override the default configuration.

更多信息这里

这篇关于为什么我会收到"摇篮&QUOT的不受支持的版本;与Android Studio中的教程应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆