I'm not able to run an Instrumented test that I created, using the espresso dependency an error message appears:
Conflict with dependency 'androidx.annotation: annotation' in project ': app'. Resolved versions for app (1.0.0-rc01) and test app (1.0.0) differ. See link for details.
I have tried alternatives like this but they have not solved: link
dependencies of my project:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'com.google.android.gms:play-services-gcm:16.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.firebase:firebase-perf:16.0.0'
implementation 'com.google.firebase:firebase-invites:16.0.0'
implementation 'com.google.firebase:firebase-messaging:17.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha1'
implementation 'com.google.android.material:material:1.0.0-beta01'
compileOnly 'javax.annotation:jsr250-api:1.0'
implementation 'com.jakewharton:butterknife:9.0.0-rc2'
annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc2'
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.google.code.gson:gson:2.8.1'
implementation 'com.squareup.okhttp3:okhttp:3.8.1'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.1'
implementation 'io.realm:android-adapters:2.1.0'
implementation 'com.google.dagger:dagger:2.9'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
//implementation 'com.facebook.android:facebook-android-sdk:4.29.0'
implementation 'com.github.clans:fab:1.6.4'
annotationProcessor "com.google.dagger:dagger-compiler:2.9"
testImplementation 'junit:junit:4.12'
// Required for instrumented tests
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true;
}
implementation 'com.mixpanel.android:mixpanel-android:5.+'
// If you want to bind to Android-specific lifecycles
implementation 'com.trello.rxlifecycle2:rxlifecycle-android:2.1.0'
// If you want pre-written Activities and Fragments you can subclass as providers
implementation 'com.trello.rxlifecycle2:rxlifecycle-components:2.1.0'
// com.trello:rx* use this dependency, avoid conflicts
implementation 'org.parceler:parceler-api:1.1.10'
annotationProcessor 'org.parceler:parceler:1.1.10'
implementation 'com.android.support:multidex:1.0.3'
def facebookVersion = "4.33.0"
implementation "com.facebook.android:facebook-login:${facebookVersion}"
implementation "com.facebook.android:facebook-share:${facebookVersion}"
implementation 'com.googlecode.libphonenumber:libphonenumber:8.4.2'
implementation 'org.jsoup:jsoup:1.11.3'