android - 发现任务 ':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
}
解决方案
推荐阅读
- css - 向下/顶部滚动并将 div 定位到屏幕中心
- javascript - 如何在 Behat/Mink 中处理比赛条件
- php - 如何从 PHP 变量的末尾到第一个空格删除所有字符?
- java - Spring Cloud Kafka 和 AWS Secrets 'inputBindingLifecycle' 异常
- javascript - forRoot 和 forFeature 的区别 [Nest JS]
- macros - 我的宏在 Common Lisp 中的部分应用存在问题
- python - RegistryError: Can't find 'spacy.Tokenizer.v1' in registry spacy -> tokenizers。可用名称:无
- python - 适用于 Python 作业的 Azure Batch Service 与 Azure Databricks
- javascript - 如何标准化 tensorflow.js 中的图像?
- google-sheets - 使 =IMPORTRANGE 交互/不更新?