Flutter-Gradle构建失败:InternalFutureFailiureAccess

时间:2020-04-26 21:55:41

标签: android flutter gradle

我开始扑朔迷离,而且我无法运行新项目...最近两天我一直在网上搜索解决方案。我尝试更改build:gradle版本(默认为3.5.0)和distributionUrl版本(默认为5.6.2)。使用默认值,我遇到了AppPlugin问题,通过查找它,升级版本解决了该问题。我在Windows上,目前正在使用Java jdk-14.0.1作为我的JAVA_HOME环境变量

现在,运行flutter run时出现以下错误:

* What went wrong:
A problem occurred evaluating project ':app'.
> com/google/common/util/concurrent/internal/InternalFutureFailureAccess

这是我的build.gradle

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.3'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

这是我的gradle-wrapper.properties

#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

谢谢!

0 个答案:

没有答案