首页 > 解决方案 > 发现任务 ':app:checkDebugManifest' 的配置有问题(类型 'CheckManifest')

问题描述

我正在运行我的应用程序,我遇到了这个问题。目前我正在用谷歌实现 Flutter 登录。错误附在下面。请调查一下。

1)我运行应用程序时的错误是:

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:checkDebugManifest' (type 'CheckManifest').
  - Type 'CheckManifest' property 'manifest' has @Input annotation used on property of type 'File'.

    Reason: A property of type 'File' annotated with @Input cannot determine how to interpret the file.

    Possible solutions:
      1. Annotate with @InputFile for regular files.
      2. Annotate with @InputDirectory for directories.
      3. If you want to track the path, return File.absolutePath as a String and keep @Input.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#incorrect_use_of_input_annotation for more details about this problem.

* 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 18s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

或者

点击链接打开错误图片

我的 pubspec.yaml 文件包括:

版本:1.0.0+1 环境:sdk:">=2.7.0 <3.0.0" 依赖项:flutter:sdk:flutter cupertino_icons:^1.0.0 firebase_core:^1.2.0 firebase_auth:^1.2.0 firebase_database:^ 6.0.0 fluttertoast:^7.1.6 cloud_firestore:^2.2.0 google_sign_in:^5.0.3 font_awesome_flutter:^9.0.0

dev_dependencies:flutter_test:sdk:flutter

3)我的应用程序级 gradle 构建

   defaultConfig {
    // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
    applicationId "com.example.fyp1"
    multiDexEnabled true
    minSdkVersion 22
    targetSdkVersion 29
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
}

标签: androidfirebasefluttergoogle-cloud-firestorefirebase-authentication

解决方案


推荐阅读