我正在尝试 flutter 的 hello world 代码。我从这里关注官方文档。
\n颤振版本:flutter_linux_1.20.1-stable
\n我已经创建了 flutter 项目并点击运行:
\nflutter create myapp\ncd myapp\nflutter run\nRun Code Online (Sandbox Code Playgroud)\n但它抛出了这个错误消息:
\nLaunching lib/main.dart on R40 in debug mode...\n \nFAILURE: Build failed with an exception. \n \n* Where: \nBuild file \'/home/sjs/flutter-projects/myapp/android/app/build.gradle\' line: 25\n \n* What went wrong: \nA problem occurred evaluating project \':app\'. \n> Failed to apply plugin [id \'kotlin-android\'] \n > Could not create an instance of type org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension.\n > Could not generate a decorated class for class …Run Code Online (Sandbox Code Playgroud)