-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Running Detox build command shows following ERROR #detox #1123
Comments
Seems like you chose the wrong build flavour for your RN version. You should set it to "minReactNative46". |
Already did that still its not working our defaultConfig in app/build.gradle looks like this. I have alse recreated this issue in a test project https://github.com/Lokendra-rawat/rnn-detox/tree/master defaultConfig { applicationId "com.testrepo2" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion missingDimensionStrategy "minReactNative", "minReactNative46" //read note missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5" testBuildType System.getProperty('testBuildType', 'debug') //this will later be used to control the test apk build type testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } |
@Lokendra-rawat It seems ur missing some step or done with incorrect way . I suggest read the steps properly and try it again. It is working fine at my side . For react native 57 you need to upgrade android >build.gradle as Also please upgrade Android studio if its at lower version |
Already did that and i've verified all the steps
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "27.0.3" minSdkVersion = 19 compileSdkVersion = 27 targetSdkVersion = 27 supportLibVersion = "27.1.1" } ext.kotlinVersion = '1.3.0' repositories { google() mavenLocal() mavenCentral() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.3.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() mavenCentral() mavenLocal() jcenter() maven { url 'https://jitpack.io' } maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } } } subprojects { subproject -> afterEvaluate { if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) { android { variantFilter { variant -> def names = variant.flavors*.name if (names.contains("reactNative51") || names.contains("reactNative55") || names.contains("reactNative57")) { setIgnore(true) } } } } } } task wrapper(type: Wrapper) { gradleVersion = '4.4' distributionUrl = distributionUrl.replace("bin", "all") } |
Description
we are trying to add detox to our project which uses rnnv2 and running the command
detox build --configuration android.emu.debug
throws following errorSteps to Reproduce
run
detox build --configuration android.emu.debug
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: