配置项目“:iris_method_channel”时出现问题

A problem occurred configuring project ':iris_method_channel'

提问人:c-an 提问时间:10/17/2023 更新时间:10/17/2023 访问量:21

问:

我正在用 Flutter 制作一个应用程序。

我没有直接导入。但我认为它在我使用的其他包中。iris_method_channel

当我构建ios时,它没有问题。但是当我构建android时,它说

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':iris_method_channel'.
> java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "versionOutput" is null

* 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 894ms
Exception: Gradle task assembleDevDebug failed with exit code 1

我该如何解决这个问题?

android flutter gradle android-gradle-plugin build.gradle

评论


答: 暂无答案