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

Android gradle plugin 3.0.0 #503

Closed
anupamsmaurya opened this issue Jan 9, 2018 · 3 comments
Closed

Android gradle plugin 3.0.0 #503

anupamsmaurya opened this issue Jan 9, 2018 · 3 comments

Comments

@anupamsmaurya
Copy link

anupamsmaurya commented Jan 9, 2018

Description

As per this setup guide for Android, "Detox 7 was updated to support Android gradle plugin 3.0.0" and "Detox 6 will not continue to be updated, to continue getting updates and features, update your Android gradle config and migrate to Detox 7". I am trying to setup Detox+Jest for React Native. I am getting Warnings regarding deprecated functions. I have followed https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html but getting error

Error:All flavors must now belong to a named flavor dimension.
The flavor 'flavor_name' is not assigned to a flavor dimension.

I am confused about the detox version. I am using the latest detox version 6.0.4 but then what does "Detox 7" means in the Android setup guide and why I am getting deprecated warnings.

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 6.0.4
  • Node: 8.9.3
  • Device: Android emulator Pixel_API_27
  • macOS: Sierra 10.12.6
  • react-native: 0.51.0
@LeoNatan
Copy link
Contributor

This is for Stack Overflow. Please do not use issues for support questions.

@fdnhkj fdnhkj mentioned this issue Jan 10, 2018
@OisinOKeeffe
Copy link

I was able to get passed this by going into the build.gradle file from detox\android\detox

declare product flavors and add them to the new or old OKhttp definitions like so:
`flavorDimensions "minReactNative46"

productFlavors {
    newOkhttp {
      dimension "minReactNative46"
    }
}`

@rotemmiz
Copy link
Member

detox@7.0.0-alpha.0 is out. Try it, give feedback please.

@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

4 participants