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

Expo template build fails (drawer-navigation) #913

Open
lcundiff opened this issue Dec 5, 2022 · 0 comments
Open

Expo template build fails (drawer-navigation) #913

lcundiff opened this issue Dec 5, 2022 · 0 comments

Comments

@lcundiff
Copy link

lcundiff commented Dec 5, 2022

Describe the bug
Android build fails for drawer-navigation expo template with this error: Execution failed for task ':app:mergeDexRelease'. More error info in context section. However, I was able to successfully build the default app template. So I don't believe it is due to my system. Is there an expo version requirement for this template above 45? I have not edited any file, merely downloaded and built.

To Reproduce
Steps to reproduce the behavior:

  1. Run npx create-react-native-app
  2. Give app name and choose expo template
  3. Scroll down to drawer-navigation template and select it
  4. Allow it to finish installing and cd into app folder
  5. Run npm i
  6. Run eas build -p android

Expected behavior
Build should succeed.

Desktop:

  • OS: iOS
  • Browser N/A
  • Expo Version: 45
  • Eas-cli: 2.8.0

Additional context
Build error occurs with "Task :app:mergeDexRelease"

Task :app:mergeDexRelease FAILED
[stderr] ERROR:/home/expo/workingdir/build/node_modules/@react-native-community/masked-view/android/build/.transforms/53358cd9a1a26d387439d2f81db3c114/transformed/classes/classes.dex: D8: Type org.reactnative.maskedview.BuildConfig is defined multiple times: /home/expo/workingdir/build/node_modules/@react-native-community/masked-view/android/build/.transforms/53358cd9a1a26d387439d2f81db3c114/transformed/classes/classes.dex, /home/expo/workingdir/build/node_modules/@react-native-masked-view/masked-view/android/build/.transforms/277d621c3eeec8cb26e62f414fafa4e8/transformed/classes/classes.dex

Final error log:

[stderr] FAILURE: Build completed with 2 failures.

[stderr] 1: Task failed with an exception.

[stderr] -----------

[stderr] * What went wrong:

[stderr] Execution failed for task ':app:mergeDexRelease'.

[stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate

[stderr]    > There was a failure while executing work items

[stderr]       > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction

[stderr]          > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 

[stderr]            Type org.reactnative.maskedview.BuildConfig is defined multiple times: /home/expo/workingdir/build/node_modules/@react-native-community/masked-view/android/build/.transforms/53358cd9a1a26d387439d2f81db3c114/transformed/classes/classes.dex, /home/expo/workingdir/build/node_modules/@react-native-masked-view/masked-view/android/build/.transforms/277d621c3eeec8cb26e62f414fafa4e8/transformed/classes/classes.dex
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

1 participant