Reputation: 3031
I have a problem with library. I copy `
compile ('de.psdev.licensesdialog:licensesdialog:1.8.0')
to gradle and when sync I get error:
Warning:Conflict with dependency 'com.google.code.findbugs:jsr305'. Resolved versions for app (3.0.0) and test app (2.0.1) differ.
Any ideas how can I resolve my problem and use that library in my project.
Upvotes: 1
Views: 2974
Reputation: 402
This happens because the main APK and the test APK use the same library (com.google.code.findbugs) but in different versions (your main APK use version 3.0.0 while your test APK use 2.0.1). So you need to tell to gradle to use for test the updated library. Just add
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.0'
to your gradle file :)
Upvotes: 2
Reputation: 3031
I resolve my problem:
compile ('de.psdev.licensesdialog:licensesdialog:1.8.0') { exclude group: 'com.google.code.findbugs', module: 'jsr305' }
Upvotes: 4