:react-native-voice_voice:packageDebugResources' (type 'MergeResources')
socialmad opened this issue · 9 comments
After updating our project with a new React Native engine and upgrading Gradle to version 8.6, we encountered an issue. We have tried various solutions, but none have worked so far.
- What went wrong:
A problem was found with the configuration of task ':react-native-voice_voice:packageDebugResources' (type 'MergeResources').-
Gradle detected a problem with the following location: 'C:\ABSYZ\myhub-app\node_modules@react-native-voice\voice\android\build\generated\res\resValues\debug'.
Reason: Task ':react-native-voice_voice:packageDebugResources' uses this output of task ':@react-native-voice_voice: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:
- Declare task ':@react-native-voice_voice:generateDebugResValues' as an input of ':react-native-voice_voice:packageDebugResources'.
- Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
- Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#mustRunAfter.
-
Same to me on Gradle 8.0.1:
- What went wrong:
Some problems were found with the configuration of task ':react-native-voice_voice:packageDebugResources' (type 'MergeResources').-
Gradle detected a problem with the following location: 'node_modules@react-native-voice\voice\android\build\generated\res\rs\debug'.
Reason: Task ':react-native-voice_voice:packageDebugResources' uses this output of task ':@react-native-voice_voice: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:
- Declare task ':@react-native-voice_voice:compileDebugRenderscript' as an input of ':react-native-voice_voice:packageDebugResources'.
- Declare an explicit dependency on ':@react-native-voice_voice:compileDebugRenderscript' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
- Declare an explicit dependency on ':@react-native-voice_voice:compileDebugRenderscript' from ':react-native-voice_voice:packageDebugResources' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
-
Gradle detected a problem with the following location: 'node_modules@react-native-voice\voice\android\build\generated\res\resValues\debug'.
Reason: Task ':react-native-voice_voice:packageDebugResources' uses this output of task ':@react-native-voice_voice: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:
- Declare task ':@react-native-voice_voice:generateDebugResValues' as an input of ':react-native-voice_voice:packageDebugResources'.
- Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
- Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
-
@socialmad I think I have a solution, do npm install react-native-voice and run the app, avoid doing the manual linking steps, it breaks the app. so just npm install should work