相关疑难解决方法(0)

Android Studio Gradle问题升级到0.5.0版 - Gradle从0.8迁移到0.9 - Android Studio也升级到0.8.1

升级后的消息说明:

Failed to refresh Gradle project 'XXX'
The project is using an unsupported version of the Android Gradle plug-in (0.8.3).
Version 0.9.0 introduced incompatible changes in the build language.
Please read the migration guide to learn how to update your project.
Run Code Online (Sandbox Code Playgroud)

升级到Android Studio到版本> = 0.8.0后出现同样的问题

android gradle android-studio build.gradle android-gradle-plugin

27
推荐指数
2
解决办法
3万
查看次数

什么是真正的Android Studio Gradle版本?

我有个问题.

在(根)build.gradle Gradle Version中是3.1.3

(根)的build.gradle

***(根)的build.gradle***

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
    }
}
Run Code Online (Sandbox Code Playgroud)

在项目结构中,Gradle Version是4.4

项目结构

在此输入图像描述

Gradle version 4.4
Run Code Online (Sandbox Code Playgroud)

在Gradle-wrapper-properties中,Url的Gradle版本是4.4

摇篮 - 包装 - 属性

在此输入图像描述

#Tue Jul 17 17:49:20 KST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Run Code Online (Sandbox Code Playgroud)

但我可以构建,我可以在SmartPhone中运行应用程序.

什么是真正的Gradle版本?

请回复.

谢谢.

android android-studio android-gradle-plugin

12
推荐指数
1
解决办法
5913
查看次数