admin管理员组

文章数量:1392007

Tried running default flutter app to test installation on flutter 3.29.1 main branch, with java 21 and gradle 8.12, but it fails building

flutter run outputs

PS C:\Users\Nicolas Kist Steffen\Documents\Nicolas\Programas\Flutter\test> flutter run
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
e: file:///C:/tools/flutter/packages/flutter_tools/gradle/src/main/kotlin/dependency_version_checker.gradle.kts:156:41 Unresolved reference: Version

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gradle:compileKotlin'.
> A failure occurred while executing .jetbrains.kotlinpilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at .

BUILD FAILED in 12s

build.gradle, settings.gradle and gradle-wrapper.properties are the same since flutter create.

Tried running default flutter app to test installation on flutter 3.29.1 main branch, with java 21 and gradle 8.12, but it fails building

flutter run outputs

PS C:\Users\Nicolas Kist Steffen\Documents\Nicolas\Programas\Flutter\test> flutter run
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
e: file:///C:/tools/flutter/packages/flutter_tools/gradle/src/main/kotlin/dependency_version_checker.gradle.kts:156:41 Unresolved reference: Version

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gradle:compileKotlin'.
> A failure occurred while executing .jetbrains.kotlinpilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle..

BUILD FAILED in 12s

build.gradle, settings.gradle and gradle-wrapper.properties are the same since flutter create.

Share Improve this question asked Mar 11 at 19:55 Nicolas DesenvolvedorNicolas Desenvolvedor 13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

fixed it by removing flutter completely and reinstalling through vscode

本文标签: