Open chganesh opened 1 year ago
If libraries that cause these errors are listed in android/app/build.gradle
in dependencies
- remove them.
I've had to remove just this one:
dependencies {
...
// implementation project(':@react-native-community_netinfo')
...
}
@chganesh have same issue, did you manage to solve it?
@philly25 Was on to something in my case, but I also needed to update settings.gradle. I added netinfo way back when autolinking wasn't a thing so I had:
android/app/build.gradle
dependencies {
...
implementation project(":react-native-community/netinfo")
...
}
android/settings.gradle
...
include ":react-native-community-netinfo"
project(":react-native-community-netinfo").projectDir = new File(rootProject.projectDir, "../node_modules/@react-native-community/netinfo/android")
...
Previously gradlew/Android building didn't give an error on that, but after upgrading to Gradle 8.0.1 with RN 0.72.x it started doing so.
Simply removing the mentioned lines in both files (thus relying on autolinking) resolved the issue. I also had to do the same for other packages (like @react-native-async-storage) I added before autolinking.
Environment
Platforms
Versions
Description
Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':react-native-community_netinfo:copyDebugJniLibsProjectAndLocalJars' (type 'LibraryJniLibsTask').
Reason: Task ':react-native-community_netinfo:copyDebugJniLibsProjectAndLocalJars' uses this output of task ':@react-native-community_netinfo:stripDebugDebugSymbols' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
2: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':react-native-community_netinfo:packageDebugResources' (type 'MergeResources').
Reason: Task ':react-native-community_netinfo:packageDebugResources' uses this output of task ':@react-native-community_netinfo:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':react-native-community_netinfo:packageDebugResources' uses this output of task ':@react-native-community_netinfo: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
3: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':react-native-community_netinfo:extractDeepLinksForAarDebug' (type 'ExtractDeepLinksTask').
Reason: Task ':react-native-community_netinfo:extractDeepLinksForAarDebug' uses this output of task ':@react-native-community_netinfo:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':react-native-community_netinfo:extractDeepLinksForAarDebug' uses this output of task ':@react-native-community_netinfo: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
4: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':react-native-community_netinfo:packageDebugAssets' (type 'MergeSourceSetFolders').
Reason: Task ':react-native-community_netinfo:packageDebugAssets' uses this output of task ':@react-native-community_netinfo: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
5: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':react-native-community_netinfo:mergeDebugJavaResource' (type 'MergeJavaResourceTask').
Reason: Task ':react-native-community_netinfo:mergeDebugJavaResource' uses this output of task ':@react-native-community_netinfo:processDebugJavaRes' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
6: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':@react-native-community_netinfo:bundleDebugAar' (type 'BundleAar').
Reason: Task ':@react-native-community_netinfo:bundleDebugAar' uses this output of task ':react-native-community_netinfo:processDebugManifest' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-community_netinfo:bundleDebugAar' uses this output of task ':react-native-community_netinfo:packageDebugResources' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-community_netinfo:bundleDebugAar' uses this output of task ':react-native-community_netinfo:extractDeepLinksForAarDebug' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-community_netinfo:bundleDebugAar' uses this output of task ':react-native-community_netinfo:prepareLintJarForPublish' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-community_netinfo:bundleDebugAar' uses this output of task ':react-native-community_netinfo:prepareDebugArtProfile' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
7: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':luu-truong_react-native-pdf:packageDebugResources' (type 'MergeResources').
Reason: Task ':luu-truong_react-native-pdf:packageDebugResources' uses this output of task ':react-native-pdf:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':luu-truong_react-native-pdf:packageDebugResources' uses this output of task ':react-native-pdf: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
8: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':luu-truong_react-native-pdf:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
Reason: Task ':luu-truong_react-native-pdf:extractDeepLinksDebug' uses this output of task ':react-native-pdf:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':luu-truong_react-native-pdf:extractDeepLinksDebug' uses this output of task ':react-native-pdf: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
9: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':react-native-community_netinfo:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
Reason: Task ':react-native-community_netinfo:extractDeepLinksDebug' uses this output of task ':@react-native-community_netinfo:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':react-native-community_netinfo:extractDeepLinksDebug' uses this output of task ':@react-native-community_netinfo: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
10: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':luu-truong_react-native-pdf:packageDebugAssets' (type 'MergeSourceSetFolders').
Reason: Task ':luu-truong_react-native-pdf:packageDebugAssets' uses this output of task ':react-native-pdf: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
11: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':luu-truong_react-native-pdf:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
Reason: Task ':luu-truong_react-native-pdf:copyDebugJniLibsProjectOnly' uses this output of task ':react-native-pdf: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
12: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':react-native-community_netinfo:copyDebugJniLibsProjectOnly' (type 'LibraryJniLibsTask').
Reason: Task ':react-native-community_netinfo:copyDebugJniLibsProjectOnly' uses this output of task ':@react-native-community_netinfo: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
13: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':@react-native-async-storage_async-storage:copyDebugJniLibsProjectAndLocalJars' (type 'LibraryJniLibsTask').
Reason: Task ':@react-native-async-storage_async-storage:copyDebugJniLibsProjectAndLocalJars' uses this output of task ':react-native-async-storage_async-storage:stripDebugDebugSymbols' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
14: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':@react-native-async-storage_async-storage:packageDebugResources' (type 'MergeResources').
Reason: Task ':@react-native-async-storage_async-storage:packageDebugResources' uses this output of task ':react-native-async-storage_async-storage:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-async-storage_async-storage:packageDebugResources' uses this output of task ':react-native-async-storage_async-storage: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
15: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':@react-native-async-storage_async-storage:extractDeepLinksForAarDebug' (type 'ExtractDeepLinksTask').
Reason: Task ':@react-native-async-storage_async-storage:extractDeepLinksForAarDebug' uses this output of task ':react-native-async-storage_async-storage:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':@react-native-async-storage_async-storage:extractDeepLinksForAarDebug' uses this output of task ':react-native-async-storage_async-storage: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
16: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':@react-native-async-storage_async-storage:packageDebugAssets' (type 'MergeSourceSetFolders').
Reason: Task ':@react-native-async-storage_async-storage:packageDebugAssets' uses this output of task ':react-native-async-storage_async-storage: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
17: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':@react-native-async-storage_async-storage:mergeDebugJavaResource' (type 'MergeJavaResourceTask').
Reason: Task ':@react-native-async-storage_async-storage:mergeDebugJavaResource' uses this output of task ':react-native-async-storage_async-storage:processDebugJavaRes' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
18: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':luu-truong_react-native-pdf:copyDebugJniLibsProjectAndLocalJars' (type 'LibraryJniLibsTask').
Reason: Task ':luu-truong_react-native-pdf:copyDebugJniLibsProjectAndLocalJars' uses this output of task ':react-native-pdf:stripDebugDebugSymbols' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
19: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':luu-truong_react-native-pdf:extractDeepLinksForAarDebug' (type 'ExtractDeepLinksTask').
Reason: Task ':luu-truong_react-native-pdf:extractDeepLinksForAarDebug' uses this output of task ':react-native-pdf:compileDebugRenderscript' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':luu-truong_react-native-pdf:extractDeepLinksForAarDebug' uses this output of task ':react-native-pdf: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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
20: Task failed with an exception.
What went wrong: A problem was found with the configuration of task ':luu-truong_react-native-pdf:mergeDebugJavaResource' (type 'MergeJavaResourceTask').
Reason: Task ':luu-truong_react-native-pdf:mergeDebugJavaResource' uses this output of task ':react-native-pdf:processDebugJavaRes' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Try:
21: Task failed with an exception.
What went wrong: Some problems were found with the configuration of task ':app:checkDevAarMetadata' (type 'CheckAarMetadataTask').
Reason: Task ':app:checkDevAarMetadata' uses this output of task ':react-native-pdf:writeDebugAarMetadata' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':app:checkDevAarMetadata' uses this output of task ':@react-native-async-storage_async-storage:writeDebugAarMetadata' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
Reason: Task ':app:checkDevAarMetadata' uses this output of task ':@react-native-community_netinfo:writeDebugAarMetadata' 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:
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem