【问题标题】:I have a problem in running Flutter project on AndroidStudio我在 Android Studio 中运行 Flutter 项目时遇到问题
【发布时间】:2022-06-10 18:01:21
【问题描述】:

运行 Gradle 任务assembleRelease:

[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-klib-commonizer-embeddable-1.4.30.pom:2:1: Content is not allowed in prolog.
[Fatal Error] checker-compat-qual-2.5.2.pom:2:1: Content is not allowed in prolog.
[Fatal Error] checker-compat-qual-2.5.2.pom:2:1: Content is not allowed in prolog.

FAILURE:构建失败并出现异常。

  • 出了什么问题: 无法确定任务 ':app:compileReleaseJavaWithJavac' 的依赖关系。

无法解析配置“:app:releaseCompileClasspath”的所有任务依赖项。 无法解析项目:onesignal_flutter。 要求: 项目:应用程序 > 没有找到项目的匹配配置:onesignal_flutter。消费者被配置为查找组件的 API,以及值为 'release' 的属性 'com.android.build.api.attributes.BuildTypeAttr',值为 ' 的属性 'org.jetbrains.kotlin.platform.type' androidJvm' 但是: - 所有消耗品配置都没有属性。 无法解析项目:fluttertoast。 要求: 项目:应用程序

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

【问题讨论】:

  • 请帮帮我!
  • 检查build.gradle中kotlin版本是否有警告
  • 尝试检查flutter doctor -v是否有任何问题,然后尝试flutter clean并重建应用程序。
  • 我试过了,还是不行

标签: flutter android-studio dart


猜你喜欢
  • 2021-02-15
  • 2022-06-11
  • 2021-01-30
  • 2017-10-16
  • 1970-01-01
  • 2021-08-09
  • 2022-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多