How to Fix Android Error A problem was found with the configuration of task app:checkDebugManifest

Опубликовано: 18 Январь 2025
на канале: KDTechs
308
1

This video is about how to fix android error:
FAILURE: Build completed with 5 failures.

1: Task failed with an exception.
-----------
What went wrong:
A problem was found with the configuration of task ':app:checkDebugManifest' (type 'CheckManifest').
In plugin 'com.android.build.gradle.api.AndroidBasePlugin' type 'com.android.build.gradle.internal.tasks.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.