-
Notifications
You must be signed in to change notification settings - Fork 641
Open
Description
I tried to use watermelon ORM for my React Native CLI Project.
My RN version 0.81.4
After run: npm run android.
I got message like that
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':watermelondb:packageDebugResources' (type 'MergeResources').
- Gradle detected a problem with the following location: 'D:\XXX\BeChef\node_modules\@nozbe\watermelondb\native\android\build\generated\res\resValues\debug'.
Reason: Task ':watermelondb:packageDebugResources' uses this output of task ':nozbe_watermelondb: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 ':nozbe_watermelondb:generateDebugResValues' as an input of ':watermelondb:packageDebugResources'.
2. Declare an explicit dependency on ':nozbe_watermelondb:generateDebugResValues' from ':watermelondb:packageDebugResources' using Task#dependsOn.
3. Declare an explicit dependency on ':nozbe_watermelondb:generateDebugResValues' from ':watermelondb:packageDebugResources' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.14.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> Declare task ':nozbe_watermelondb:generateDebugResValues' as an input of ':watermelondb:packageDebugResources'
> Declare an explicit dependency on ':nozbe_watermelondb:generateDebugResValues' from ':watermelondb:packageDebugResources' using Task#dependsOn
> Declare an explicit dependency on ':nozbe_watermelondb:generateDebugResValues' from ':watermelondb:packageDebugResources' using Task#mustRunAfter
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':nozbe_watermelondb:extractDeepLinksDebug' (type 'ExtractDeepLinksTask').
- Gradle detected a problem with the following location: 'D:\XXX\BeChef\node_modules\@nozbe\watermelondb\native\android\build\generated\res\resValues\debug\navigation'.
Reason: Task ':nozbe_watermelondb:extractDeepLinksDebug' uses this output of task ':watermelondb: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 ':watermelondb:generateDebugResValues' as an input of ':nozbe_watermelondb:extractDeepLinksDebug'.
2. Declare an explicit dependency on ':watermelondb:generateDebugResValues' from ':nozbe_watermelondb:extractDeepLinksDebug' using Task#dependsOn.
3. Declare an explicit dependency on ':watermelondb:generateDebugResValues' from ':nozbe_watermelondb:extractDeepLinksDebug' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.14.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
* Try:
> Declare task ':watermelondb:generateDebugResValues' as an input of ':nozbe_watermelondb:extractDeepLinksDebug'
> Declare an explicit dependency on ':watermelondb:generateDebugResValues' from ':nozbe_watermelondb:extractDeepLinksDebug' using Task#dependsOn
> Declare an explicit dependency on ':watermelondb:generateDebugResValues' from ':nozbe_watermelondb:extractDeepLinksDebug' using Task#mustRunAfter
> Run with --scan to get full insights.
==============================================================================
android.app.buildgrade also added
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation project(':watermelondb')
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
But still failed. Please help me
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels