react-native-vector-icons
react-native-vector-icons copied to clipboard
problem was found with the configuration of task ':app:generateDebugLintReportModel' (type 'LintModelWriterTask').
I get this error when i try to build an app in react native. This error persist whenever i try to use react-native-vector-icons inside my project
C:\Users\HP\Desktop\NativeApps\Project\NativeApp\android>gradlew build
> Task :app:generateDebugLintReportModel FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:generateDebugLintReportModel' (type 'LintModelWriterTask').
- Gradle detected a problem with the following location: 'C:\Users\HP\Desktop\NativeApps\Project\NativeApp\android\app\build\intermediates\ReactNativeVectorIcons'.
Reason: Task ':app:generateDebugLintReportModel' uses this output of task ':app:copyReactNativeVectorIconFonts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':app:copyReactNativeVectorIconFonts' as an input of ':app:generateDebugLintReportModel'.
2. Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:generateDebugLintReportModel' using Task#dependsOn.
3. Declare an explicit dependency on ':app:copyReactNativeVectorIconFonts' from ':app:generateDebugLintReportModel' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* 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 3m 10s
156 actionable tasks: 4 executed, 152 up-to-date
I am using:
- gradle-8.6
- react-native-cli: 2.0.1
- react-native: 0.74.2
- Node v20.13.1