Not able to build my project on Android (iOS works)
adamgusky opened this issue · 4 comments
adamgusky commented
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?
AkilUnik commented
Hey send your
package.json
adamgusky commented
Hey @AkilUnik thanks for taking a look, here it is
{
"name": "calorietracker",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-native-community/cli": "^13.6.9",
"@react-native-community/voice": "^1.1.9",
"@react-native-voice/voice": "^3.2.4",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/drawer": "^5.12.9",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@react-navigation/stack": "^5.14.9",
"@rneui/themed": "^4.0.0-rc.8",
"@supabase/supabase-js": "^2.43.5",
"axios": "^1.7.2",
"react": "18.2.0",
"react-native": "0.74.2",
"react-native-elements": "^3.4.3",
"react-native-gesture-handler": "^2.16.2",
"react-native-permissions": "^4.1.5",
"react-native-safe-area-context": "^4.10.4",
"react-native-screens": "^3.31.1",
"react-native-svg": "^15.3.0",
"react-native-url-polyfill": "^2.0.0",
"react-native-vector-icons": "^10.1.0",
"react-native-voice": "^0.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.74.84",
"@react-native/eslint-config": "0.74.84",
"@react-native/metro-config": "0.74.84",
"@react-native/typescript-config": "0.74.84",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
},
"packageManager": "yarn@3.6.4"
}
benjacobkoshy commented
Yeah, me too facing the same issue.
hhyyy9 commented
same here