xxxxxxxxxx
I got this error because I was using pdf library, commenting it resloved my error
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'===> this one
xxxxxxxxxx
// Add this to the project level build.gradle file
jcenter {
url "http://jcenter.bintray.com/"
}