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

Fix: Execution failed for task :app:mergeReleaseResources for Android release #109

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

robertqin86
Copy link
Contributor

@robertqin86 robertqin86 commented Jul 25, 2019

Execution failed for task :app:mergeReleaseResources for react-native run-android --variant=release caused by duplicate resources interpretation

  • Moved galio.json to config folder
  • Refactor relevant imports
BUILD FAILED in 3m 25s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installRelease -PreactNativeDevServerPort=8081
warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-maps: https://github.com/react-native-community/react-native-maps#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.
warn The following packages use deprecated "rnpm" config that will stop working from next release:
  - react-native-maps: https://github.com/react-native-community/react-native-maps#readme
Please notify their maintainers about it. You can find more details at https://github.com/react-native-community/cli/blob/master/docs/configuration.md#migration-guide.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> [raw/node_modules_galioframework_src_fonts_galio] /react_native/MyProject/android/app/build/generated/res/react/release/raw/node_modules_galioframework_src_fonts_galio.json	[raw/node_modules_galioframework_src_fonts_galio] /react_native/MyProject/android/app/build/generated/res/react/release/raw/node_modules_galioframework_src_fonts_galio.ttf: Error: Duplicate resources

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

…ative run-android --variant=release caused by Duplicate resources interpretation
@VictorAtPL
Copy link
Contributor

I've received such error:

What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
[raw/node_modules_galioframework_src_fonts_galio] /home/piotr/WebstormProjects/zlotowa/android/app/build/generated/res/react/release/raw/node_modules_galioframework_src_fonts_galio.json [raw/node_modules_galioframework_src_fonts_galio] /home/piotr/WebstormProjects/zlotowa/android/app/build/generated/res/react/release/raw/node_modules_galioframework_src_fonts_galio.ttf: Error: Duplicate resources

After applying your patch - application built successfully via ./gradlew bundleRelease.

Thank you.

VictorAtPL added a commit to VictorAtPL/galio that referenced this pull request Aug 8, 2019
@palingheorghe
Copy link
Collaborator

This is a really good PR. Thank you!

@palingheorghe palingheorghe merged commit 4c40764 into galio-org:master Aug 12, 2019
@bcteam2020
Copy link

Facing the same problem tried many solution but failed, in my app galio.json file is config folder itself even getting error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants