如何解决这个错误FlutterA.S. A problem occurred evaluating project ':app'.> org/gradle/initial/BuildCompletionListener”

sulc1iza  于 2023-05-29  发布在  Flutter
关注(0)|答案(1)|浏览(939)

当我运行项目时,出现了以下错误:

  • 哪里出错了:评估项目“:app”时出现问题。

org/gradle/initialization/BuildCompletionListener

v6ylcynt

v6ylcynt1#

首先检查settings.gradle,必须找到这样的项目信息:

rootProject.name = "InternalLibsKotlin"
include ':app'
include ':banner' // module

然后在gradle:app中必须看到这样的路径

api fileTree(dir: 'libs', include: ['*.jar'])
 implementation project(path: ':banner')

注意include = path

相关问题