美文网首页
Flutter-编译apk报Gradle错误

Flutter-编译apk报Gradle错误

作者: 阿博聊编程 | 来源:发表于2022-05-06 09:46 被阅读0次
    配图来自网络,如侵必删

    在编译一个FlutterAndroid 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就没有问题了。记录一下,我遇到的问题,希望对看文章的你有所帮助。

    相关文章

      网友评论

          本文标题:Flutter-编译apk报Gradle错误

          本文链接:https://www.haomeiwen.com/subject/izmayrtx.html