-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Execution failed for duplicate resources #934
Comments
Can you also please share the full console log? |
|
Okay I will share |
This comment was marked as off-topic.
This comment was marked as off-topic.
Please open a separate issue. |
|
please check it once |
Passing over to the Metro team as the build failed during bundling. |
This looks like #857 (comment) TL;DR: - you likely have multiple versions of Metro in your Make sure you have no explicit Metro dependencies in your |
okay so in dev dependency I have a package called "metro-react-native-babel-preset" but from the package, metro was missing, so I add the latest version of the metro now and it works,
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
2: Task failed with an exception.
BUILD FAILED in 42s |
my package file {
"name": "Fin1",
"version": "0.0.1",
"private": true,
"scripts": {
"android:dev": "ENVFILE=./env/.env.dev npx react-native run-android --variant=devDebug --appIdSuffix=dev",
"android:prod": "ENVFILE=./env/.env.prod npx react-native run-android --variant=prodDebug",
"android:prodBundle": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew bundleProdRelease",
"android:prodApk": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew assembleProdRelease",
"android:devRelease": "cd android && ENVFILE=./env/.env.dev ./gradlew clean && ./gradlew assembleDevRelease",
"ios:dev": "ENVFILE=./env/.env.dev react-native run-ios --scheme \"Fin1Dev\" --configuration \"Dev.Debug\"",
"codepush:androidDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn -d Dev -m -t 2.1.2",
"codepush:iosDev": "appcenter codepush release-react -a IndigoLearn/1FIN-by-Indigolearn-1 -d Dev -m -t 2.1.2",
"codepush:iosProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn-1 -d Production -m -t 2.1.2",
"codepush:androidProd": "appcenter codepush release-react -a IndigoLearn-Prod/1FIN-By-IndigoLearn -d Production -m -t 2.1.2",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"repo:cleanup": "rm -rf node_modules & rm -rf yarn.lock & yarn install & cd ios & rm -rf Podfile.lock & pod install & cd ..",
"android:winDev": "set \"ENVFILE=./env/.env.dev\" && npx react-native run-android --variant=devDebug --appIdSuffix=dev"
},
"dependencies": {
"@invertase/react-native-apple-authentication": "^2.2.2",
"@native-html/table-plugin": "^5.3.1",
"@react-native-async-storage/async-storage": "^1.11.11",
"@react-native-community/datetimepicker": "^6.7.5",
"@react-native-community/netinfo": "^9.3.7",
"@react-native-firebase/analytics": "^17.3.0",
"@react-native-firebase/app": "^17.3.0",
"@react-native-firebase/crashlytics": "^17.3.0",
"@react-native-firebase/dynamic-links": "^17.3.0",
"@react-native-firebase/messaging": "^17.3.0",
"@react-native-firebase/perf": "^17.3.0",
"@react-native-google-signin/google-signin": "^9.0.2",
"@react-native-masked-view/masked-view": "^0.2.8",
"@react-navigation/drawer": "^6.6.0",
"@react-navigation/native": "^6.1.4",
"@react-navigation/stack": "^6.3.14",
"axios": "^1.3.3",
"lottie-ios": "^4.1.3",
"lottie-react-native": "^5.1.5",
"metro": "^0.75.1",
"react": "18.2.0",
"react-native": "0.71.3",
"react-native-animatable": "^1.3.3",
"react-native-calendars": "^1.1293.0",
"react-native-canvas": "^0.1.38",
"react-native-circular-progress": "^1.3.8",
"react-native-code-push": "^7.1.0",
"react-native-config": "^1.5.0",
"react-native-deck-swiper": "^2.0.13",
"react-native-device-info": "^10.4.0",
"react-native-document-picker": "^8.1.3",
"react-native-email-link": "^1.14.3",
"react-native-exception-handler": "^2.10.10",
"react-native-fbsdk-next": "^11.1.0",
"react-native-file-viewer": "^2.1.5",
"react-native-flash-message": "^0.4.0",
"react-native-freshchat-sdk": "^4.2.1",
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.9.0",
"react-native-gifted-charts": "^1.2.42",
"react-native-hyperlink": "^0.0.22",
"react-native-image-crop-picker": "^0.39.0",
"react-native-image-zoom-viewer": "^3.0.1",
"react-native-in-app-review": "^4.2.1",
"react-native-linear-gradient": "^2.6.2",
"react-native-material-ripple": "^0.9.1",
"react-native-modal": "^13.0.1",
"react-native-modal-datetime-picker": "^14.0.1",
"react-native-multicolor-progress-bar": "^2.0.0",
"react-native-offline": "^6.0.2",
"react-native-orientation": "^3.1.3",
"react-native-paper": "^5.2.0",
"react-native-pg-react-native-sdk": "^2.1.6",
"react-native-progress": "^5.0.0",
"react-native-razorpay": "^2.3.0",
"react-native-reanimated": "^2.14.4",
"react-native-render-html": "^6.3.4",
"react-native-restart": "^0.0.27",
"react-native-safe-area-context": "^4.5.0",
"react-native-screens": "^3.20.0",
"react-native-share": "^8.2.0",
"react-native-shimmer-placeholder": "^2.0.9",
"react-native-slider": "^0.11.0",
"react-native-sms-retriever": "^1.1.1",
"react-native-splash-screen": "^3.3.0",
"react-native-svg": "^13.8.0",
"react-native-swipe-gestures": "^1.0.5",
"react-native-swipeable-rating": "^0.2.1",
"react-native-swiper-flatlist": "^3.0.18",
"react-native-vector-icons": "^9.2.0",
"react-native-video": "file:../Resources/vdocipher_iOS/react-native-video-fix-fairplay",
"react-native-video-vdo": "file:../Resources/vdocipher_iOS/react-native-video-vdo-master",
"react-native-webview": "^11.26.1",
"react-native-youtube-iframe": "^2.2.2",
"react-navigation-backhandler": "^2.0.1",
"react-redux": "^8.0.5",
"recyclerlistview": "^4.2.0",
"redux": "^4.2.1",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.4.2",
"vdocipher-rn-bridge": "^1.12.2"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/runtime": "^7.20.13",
"@react-native-community/eslint-config": "^3.2.0",
"babel-jest": "^29.4.3",
"eslint": "^8.34.0",
"jest": "^29.4.3",
"metro-react-native-babel-preset": "^0.75.0",
"react-test-renderer": "18.2.0",
"redux-logger": "^3.0.6"
},
"jest": {
"preset": "react-native"
}
} |
Hi @NikhilMasurkar - I just installed your Remove that dependency and you should be ok.
You can (and should) remove |
hi, @robhogan do I need to uninstall this dependency? if I'll uninstall then instead which package is best? |
All I can tell you is that your build issues are caused by that package, rather than a bug in Metro or React Native. You'll need to decide the best approach to resolve that. You could patch or fork the package, raise an issue there and ask the maintainer to fix it, migrate to something else, vendor the package's code into your app, or build your own. You could even get around this particular issue by forcing your package resolutions. If you need help with any of that I'd suggest asking on StackOverflow. This isn't the place for that kind of support. Good luck! |
Please try :
referenced from this source |
New Version
0.71.3
Old Version
0.64.2
Build Target(s)
Could not resolve ':app:createBundleDevDebugJsAndAssets'. and java.lang.StackOverflowError (no error message) this error
Output of
react-native info
Issue and Reproduction Steps
android/app/build.gradle
android/build.gradle..............................................................
The text was updated successfully, but these errors were encountered: