Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:react-native-voice_voice:packageDebugResources' (type 'MergeResources') #489

Open
socialmad opened this issue Mar 18, 2024 · 2 comments
Open

Comments

@socialmad
Copy link

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:

      1. Declare task ':@react-native-voice_voice:generateDebugResValues' as an input of ':react-native-voice_voice:packageDebugResources'.
      2. Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#mustRunAfter.
@VictorDev200
Copy link

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:

      1. Declare task ':@react-native-voice_voice:compileDebugRenderscript' as an input of ':react-native-voice_voice:packageDebugResources'.
      2. Declare an explicit dependency on ':@react-native-voice_voice:compileDebugRenderscript' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
      3. 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:

      1. Declare task ':@react-native-voice_voice:generateDebugResValues' as an input of ':react-native-voice_voice:packageDebugResources'.
      2. Declare an explicit dependency on ':@react-native-voice_voice:generateDebugResValues' from ':react-native-voice_voice:packageDebugResources' using Task#dependsOn.
      3. 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.

@VictorDev200
Copy link

VictorDev200 commented Apr 12, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants