The reason why this happen is that diff dependency use same lib of diff version.
So, there are 3 steps or (1 step) to solve this problem.
Add
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:2.0.1'
}
to your build.gradle
file in android {...}
Open terminal in android studio
run ./gradlew -q app:dependencies
command.
Click Clean Project
from menu bar of android studio in Build
list.
It will rebuild the project, and then
remove
code in 1st step.
Maybe you need just exec 2nd step. I can't rollback when error occurs. Have a try.