在编译一个Flutter
的Android apk
遇到下面的错误:
Executing Gradle tasks as part of a build without a settings file is not supported. Make sure that you are
executing Gradle from a directory within your Gradle project.
Your project should have a 'settings.gradle(.kts)' file in the root directory.
这个错误,我找了好久的资料,有网友提议把Kotlin
降低一个大版本试试。我原本用的是1.6.21
,我现在把版本变成1.5.10
就没有问题了。记录一下,我遇到的问题,希望对看文章的你有所帮助。
网友评论