-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
First IssueIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached projectThis issue can be reproduced in Snack or an attached project
Description
Describe the bug
I'm trying to add this library in a React Native brownfield project in which new architecture is enabled, I am not able to build the project, getting this error
FAILURE: Build completed with 6 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':d11_react-native-fast-image:packageDebugResources' (type 'MergeResources').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug'.
Reason: Task ':d11_react-native-fast-image:packageDebugResources' uses this output of task ':@d11_react-native-fast-image:generateDebugResValues' 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 ':@d11_react-native-fast-image:generateDebugResValues' as an input of ':d11_react-native-fast-image:packageDebugResources'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:packageDebugResources' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:packageDebugResources' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':d11_react-native-fast-image:packageDebugResources' (type 'MergeResources').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug'.
Reason: Task ':d11_react-native-fast-image:packageDebugResources' uses this output of task ':@d11_react-native-fast-image:generateDebugResValues' 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 ':@d11_react-native-fast-image:generateDebugResValues' as an input of ':d11_react-native-fast-image:packageDebugResources'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:packageDebugResources' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:packageDebugResources' using Task#mustRunAfter.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':@d11_react-native-fast-image:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug/navigation'.
Reason: Task ':@d11_react-native-fast-image:extractDeepLinksDebug' uses this output of task ':d11_react-native-fast-image:generateDebugResValues' 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 ':d11_react-native-fast-image:generateDebugResValues' as an input of ':@d11_react-native-fast-image:extractDeepLinksDebug'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugResValues' from ':@d11_react-native-fast-image:extractDeepLinksDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugResValues' from ':@d11_react-native-fast-image:extractDeepLinksDebug' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':@d11_react-native-fast-image:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug/navigation'.
Reason: Task ':@d11_react-native-fast-image:extractDeepLinksDebug' uses this output of task ':d11_react-native-fast-image:generateDebugResValues' 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 ':d11_react-native-fast-image:generateDebugResValues' as an input of ':@d11_react-native-fast-image:extractDeepLinksDebug'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugResValues' from ':@d11_react-native-fast-image:extractDeepLinksDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugResValues' from ':@d11_react-native-fast-image:extractDeepLinksDebug' using Task#mustRunAfter.
==============================================================================
3: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':d11_react-native-fast-image:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug/navigation'.
Reason: Task ':d11_react-native-fast-image:extractDeepLinksDebug' uses this output of task ':@d11_react-native-fast-image:generateDebugResValues' 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 ':@d11_react-native-fast-image:generateDebugResValues' as an input of ':d11_react-native-fast-image:extractDeepLinksDebug'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:extractDeepLinksDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:extractDeepLinksDebug' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':d11_react-native-fast-image:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/res/resValues/debug/navigation'.
Reason: Task ':d11_react-native-fast-image:extractDeepLinksDebug' uses this output of task ':@d11_react-native-fast-image:generateDebugResValues' 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 ':@d11_react-native-fast-image:generateDebugResValues' as an input of ':d11_react-native-fast-image:extractDeepLinksDebug'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:extractDeepLinksDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:generateDebugResValues' from ':d11_react-native-fast-image:extractDeepLinksDebug' using Task#mustRunAfter.
==============================================================================
4: Task failed with an exception.
-----------
* What went wrong:
Some problems were found with the configuration of task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' (type 'JavaCompile').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:javaPreCompileDebug' 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 ':d11_react-native-fast-image:javaPreCompileDebug' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:javaPreCompileDebug' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:javaPreCompileDebug' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/source/codegen/java'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' 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 ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/source/buildConfig/debug'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:generateDebugBuildConfig' 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 ':d11_react-native-fast-image:generateDebugBuildConfig' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugBuildConfig' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugBuildConfig' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: Some problems were found with the configuration of task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' (type 'JavaCompile').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:javaPreCompileDebug' 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 ':d11_react-native-fast-image:javaPreCompileDebug' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:javaPreCompileDebug' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:javaPreCompileDebug' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/source/codegen/java'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' 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 ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateCodegenArtifactsFromSchema' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/generated/source/buildConfig/debug'.
Reason: Task ':@d11_react-native-fast-image:compileDebugJavaWithJavac' uses this output of task ':d11_react-native-fast-image:generateDebugBuildConfig' 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 ':d11_react-native-fast-image:generateDebugBuildConfig' as an input of ':@d11_react-native-fast-image:compileDebugJavaWithJavac'.
2. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugBuildConfig' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#dependsOn.
3. Declare an explicit dependency on ':d11_react-native-fast-image:generateDebugBuildConfig' from ':@d11_react-native-fast-image:compileDebugJavaWithJavac' using Task#mustRunAfter.
==============================================================================
5: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':d11_react-native-fast-image:packageDebugAssets' (type 'MergeSourceSetFolders').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/shader_assets/debug/compileDebugShaders/out'.
Reason: Task ':d11_react-native-fast-image:packageDebugAssets' uses this output of task ':@d11_react-native-fast-image:compileDebugShaders' 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 ':@d11_react-native-fast-image:compileDebugShaders' as an input of ':d11_react-native-fast-image:packageDebugAssets'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:compileDebugShaders' from ':d11_react-native-fast-image:packageDebugAssets' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:compileDebugShaders' from ':d11_react-native-fast-image:packageDebugAssets' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':d11_react-native-fast-image:packageDebugAssets' (type 'MergeSourceSetFolders').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/shader_assets/debug/compileDebugShaders/out'.
Reason: Task ':d11_react-native-fast-image:packageDebugAssets' uses this output of task ':@d11_react-native-fast-image:compileDebugShaders' 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 ':@d11_react-native-fast-image:compileDebugShaders' as an input of ':d11_react-native-fast-image:packageDebugAssets'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:compileDebugShaders' from ':d11_react-native-fast-image:packageDebugAssets' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:compileDebugShaders' from ':d11_react-native-fast-image:packageDebugAssets' using Task#mustRunAfter.
==============================================================================
6: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out'.
Reason: Task ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' uses this output of task ':@d11_react-native-fast-image:mergeDebugNativeLibs' 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 ':@d11_react-native-fast-image:mergeDebugNativeLibs' as an input of ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:mergeDebugNativeLibs' from ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:mergeDebugNativeLibs' from ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.10.2/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> 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.
* Exception is:
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
- Gradle detected a problem with the following location: '/Users/alex/AndroidStudioProjects/react-native-brownfield-example/reactNative/node_modules/@d11/react-native-fast-image/android/build/intermediates/merged_native_libs/debug/mergeDebugNativeLibs/out'.
Reason: Task ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' uses this output of task ':@d11_react-native-fast-image:mergeDebugNativeLibs' 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 ':@d11_react-native-fast-image:mergeDebugNativeLibs' as an input of ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly'.
2. Declare an explicit dependency on ':@d11_react-native-fast-image:mergeDebugNativeLibs' from ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' using Task#dependsOn.
3. Declare an explicit dependency on ':@d11_react-native-fast-image:mergeDebugNativeLibs' from ':d11_react-native-fast-image:copyDebugJniLibsProjectOnly' using Task#mustRunAfter.
Project Structure
I have a multi-module Android project structured as follows:
react-native-brownfield-example/
│── app/ # Native Android app module
│ ├── MainApplication.kt
│ ├── MainActivity.kt
│ ├── build.gradle.kts
│
│── feature/ # Modularized feature components
│ ├── react/ # Contains all React integration code
│ │ ├── NativeLocalStorageModule.kt
│ │ ├── ReactNativeHost
│ │ ├── build.gradle.kts
│
│── reactNative/ # React Native project
│ ├── specs/NativeLocalStorage.ts
│ ├── index.android.js
│ ├── package.json
Reproducible Example
A minimal, reproducible example is available in this repository:
To Reproduce
- Clone the repository:
git clone https://github.com/sanjeevyadavIT/react-native-brownfield-example.git
cd react-native-brownfield-example
git checkout add/fast-image-lib
- Install dependencies:
cd reactNative
yarn install
cd ..
- Generate codegen artifacts in terminal:
./gradlew generateCodegenArtifactsFromSchema
- Build the project in Android Studio
- See the error
Expected behavior
Library should have integrated properly and build was successful
Dependency versions
- React Native version:
0.76.7
- React version:
18.3.1
- React Native Fast Image version:
8.9.2
I tried the possible solution mentioned in the error, but still getting same error
jordankkkprincektripathi
Metadata
Metadata
Assignees
Labels
First IssueIssue: Author Provided ReproThis issue can be reproduced in Snack or an attached projectThis issue can be reproduced in Snack or an attached project