小编sar*_*r47的帖子

尝试 Flutter hello world 代码时出现“无法应用插件 [id 'kotlin-android']”

我正在尝试 flutter 的 hello world 代码。我从这里关注官方文档。

\n

颤振版本:flutter_linux_1.20.1-stable

\n

我已经创建了 flutter 项目并点击运行:

\n
flutter create myapp\ncd myapp\nflutter run\n
Run Code Online (Sandbox Code Playgroud)\n

但它抛出了这个错误消息:

\n
Launching 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)

android kotlin flutter

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

flutter ×1

kotlin ×1