我运行我的项目并收到“无法编译设置”错误

问题描述

Launching lib\main.dart on TECNO KA7 in debug mode...

FAILURE: Build Failed with an exception.

* Where:
Settings file 'C:\Users\sekek\BusSystem\android\settings.gradle' line: 3

* What went wrong:
Could not compile settings file 'C:\Users\sekek\BusSystem\android\settings.gradle'.
> startup Failed:
  settings file 'C:\Users\sekek\BusSystem\android\settings.gradle': 3: expecting EOF,found 'LICENSE' @ line 3,column 14.
     found in the LICENSE file.
                  ^

  1 error


* 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.org

BUILD Failed in 17s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        26.5s
Exception: Gradle task assembleDebug Failed with exit code 1

这是我的settings.gradle文件这是我第一次遇到这样的错误,所以我真的不知道该怎么做。

//copyright 2014 The Flutter Authors. All rights reserved.
//Use of this source code is governed by a BSD-style license that can be
//found in the LICENSE file.

include ':app'

def localPropertiesFile = new File(rootProject.projectDir,"local.properties")
def properties = new Properties()

assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }

def FlutterSdkPath = properties.getProperty("Flutter.sdk")
assert FlutterSdkPath != null,"Flutter.sdk not set in local.properties"
apply from: "$FlutterSdkPath/packages/Flutter_tools/gradle/app_plugin_loader.gradle"

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)