Closed dulmina-jayaru closed 6 months ago
https://github.com/hoangphan2202/voice
work for me React native 0.72.7 Android API 11
@dulmina-jayaru yes, same it is old didn't work for me as well
Getting similar when I try to build from Android Studio:
1: Task failed with an exception.
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: 'C:\project\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: 'C:\project\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.
@dulmina-jayaru Hello, did you fix the error?, if the answer is yes, can you share with us the solution :D please
### Issue Description: When building the project, an error occurs during the compilation of the @react-native-voice_voice module in the Android platform. The error is related to deprecated configurations and implicit dependencies in the Gradle build process.
Error Details:
A deprecation warning is triggered due to the use of an outdated configuration in the AndroidManifest.xml file. Another error occurs during the packageDebugResources task, indicating problems with implicit dependencies related to tasks like compileDebugRenderscript and generateDebugResValues.
Can Anyone Help Please 🙏