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

[email protected] gradle flavorDimension issues #515

Closed
coderjonny opened this issue Jan 12, 2018 · 2 comments
Closed

[email protected] gradle flavorDimension issues #515

coderjonny opened this issue Jan 12, 2018 · 2 comments

Comments

@coderjonny
Copy link

coderjonny commented Jan 12, 2018

Hey guys, thanks for the alpha release! Here's my issue:

Description

Followed exactly all the setup procedures for android
When I try running detox build -c android.emu.debug -l verbose,
I get an error:

> Task :app:generateBundledResourcesHashDebug
fbed798de55bc14b630fdbbef2bcc3fac343ae8edbd26e9f611d3f8299fb694d


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':detox:transformDexArchiveWithExternalLibsDexMergerForMinReactNative44DebugAndroidTest'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 8s
324 actionable tasks: 23 executed, 301 up-to-date
child_process.js:644
    throw err;
    ^

Error: Command failed: cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..

Steps to Reproduce

detox build -c android.emu.debug -l verbose

Detox, Node, Device, Xcode and macOS Versions

  • Detox: [email protected]
  • Node: v8.9.3
  • Device: emulator Nexus_5_API_23
  • Xcode: n/a
  • macOS: high sierra 10.13.2
  • Android Studio 3.0.1
  • Gradle Version 4.1

Device and verbose Detox logs

emulator Nexus_5_API_23

Would anyone know a workaround to get it built without having to go in and delete these lines?

Looks like if I go directly into the file in the package, node_modules/detox/android/build.gradle, and delete flavors minReactNative44 related lines, it builds:

// delete these under line 15
minReactNative44 {
   dimension "minReactNative"
}
...
dependencies {
//delete these under line 60 
minReactNative44Implementation 'com.squareup.okhttp3:okhttp:3.4.1'
minReactNative44Implementation 'com.squareup.okhttp3:okhttp-ws:3.4.1'
@coderjonny coderjonny mentioned this issue Jan 12, 2018
@stale
Copy link

stale bot commented Mar 7, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions.

@stale stale bot added the 🏚 stale label Mar 7, 2018
@stale
Copy link

stale bot commented Mar 14, 2018

The issue has been closed for inactivity.

@stale stale bot closed this as completed Mar 14, 2018
@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant