Android 发现任务';的配置有问题:应用程序:checkDebugManifest';(在颤振模式下键入检查清单)
我正在生成我的应用程序,生成时发生此错误-Android 发现任务';的配置有问题:应用程序:checkDebugManifest';(在颤振模式下键入检查清单),android,ios,flutter,dart,Android,Ios,Flutter,Dart,我正在生成我的应用程序,生成时发生此错误- 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
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 1m 0s
我不知道为什么会发生这个错误,而之前一切都正常。请有人帮我解决这个问题。在我的情况下,我在将Gradle升级到版本7后遇到了这样的错误 我通过更新project build.gradle文件中的“com.android.tools.build:gradle”版本修复了此问题:
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
}
}
自从3天前我就有了同样的问题,但我还不能解决它。@juliosegura我刚刚把grafle版本降到了5.4.6,它成功了。虽然我想知道,如果我们想使用gradle版本,如何删除这个错误7@Shrenyansh你说得对,我把gradle版本降到了5.6.4,这就解决了问题。谢谢@朱利奥古拉没问题。如果你喜欢我的问题和答案,请考虑投票。