Android Gradle同步失败-需要Gradle 2.2版。目前的版本是5.4.1

Android Gradle同步失败-需要Gradle 2.2版。目前的版本是5.4.1,android,gradle,Android,Gradle,尝试将模块导入我的应用程序后,我收到一个错误: Gradle version 2.2 is required. Current version is 5.4.1. Please fix the project's Gradle settings. Fix Gradle wrapper and re-import project Open Gradle wrapper properties Gradle settings 一切都很好:/这是我的Gradle文件: buildscript {

尝试将模块导入我的应用程序后,我收到一个错误:

Gradle version 2.2 is required. Current version is 5.4.1.

Please fix the project's Gradle settings.
Fix Gradle wrapper and re-import project
Open Gradle wrapper properties
Gradle settings
一切都很好:/这是我的Gradle文件:

buildscript {
    ext.kotlin_version = '1.3.60'

    repositories {
        google()
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:4.3.3'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02'

    }
}

allprojects {
    repositories {
        google()
        jcenter()
        flatDir {
            dirs 'libs'
        }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}
和wrapper.properties文件

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

我试图使缓存无效,但无效。有什么想法吗?我快疯了

您必须转到新模块文件夹,找到
build.gradle
文件并修复该文件(更改gradle版本和其他版本)

不起作用,已尝试删除该模块。看起来您没有完全删除它。这是检查该文件的一种方法吗?我在Android Studio中删除了它,从项目文件夹中删除了它……您是否从build.gradle(应用程序模块)中删除了它