android - Can't build flutter app, "Execution failed for task ':gradle:compileKotlin'"

Tried running default flutter app to test installation on flutter 3.29.1 main branch, with java 21 and

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744773901a4592929.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信