The version of Detox is 7.0.1 and React Native 0.48.4
I managed to make it work by
androidTestImplementation(project(path: ":detox")) {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'junit:junit:4.12', {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'com.android.support.test:runner:1.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation 'com.android.support.test:rules:1.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
}
Also later on, I ran into app crashes immediately, So I checked around and the solution for the app crashed after react-native run-android or detox test is some dependencies version, especially about gsm and as such.