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

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

Open
adamgusky opened this issue Jun 27, 2024 · 2 comments
Open

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

adamgusky opened this issue Jun 27, 2024 · 2 comments

Comments

@adamgusky
Copy link

adamgusky commented Jun 27, 2024

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
Copy link

AkilUnik commented Jun 28, 2024

Hey send your
package.json

@adamgusky
Copy link
Author

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": "[email protected]"
}

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