I just started implement Detox for android for my project.
However, I ran into the issue with Error:Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :detox'.
I am not sure what did I do wrong when I followed all the step in the Read me file.
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.