voice icon indicating copy to clipboard operation
voice copied to clipboard

Not able to build my project on Android (iOS works)

Open adamgusky opened this issue 1 year ago • 2 comments
trafficstars

Hi, I built an iOS project with react native and used this library which worked very well.

However, when trying to build the android version I am getting this error:

Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong:
A problem was found with the configuration of task ':react-native-community_voice:packageDebugResources' (type 'MergeResources'). - Gradle detected a problem with the following location: '/Users/adamgusky/Projects/calorietracker/frontend/node_modules/@react-native-community/voice/android/build/generated/res/resValues/debug'. Reason: Task ':react-native-community_voice:packageDebugResources' uses this output of task ':@react-native-community_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-community_voice:generateDebugResValues' as an input of ':react-native-community_voice:packageDebugResources'. 2. Declare an explicit dependency on ':@react-native-community_voice:generateDebugResValues' from ':react-native-community_voice:packageDebugResources' using Task#dependsOn. 3. Declare an explicit dependency on ':@react-native-community_voice:generateDebugResValues' from ':react-native-community_voice:packageDebugResources' using Task#mustRunAfter. For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dep

I am stumped. Anyone know what the issue is?

adamgusky avatar Jun 27 '24 23:06 adamgusky