I got this error when we run apk file of our application. In build.gradle we set multidex and compile multidex is existed in Gradle file . We changed the version of
build.gradle
For me i tried adding implementation 'com.google.android.gms:play-services-auth:18.0.0' didnot work for me..
But after adding the below dependency it worked for me.
implementation 'com.android.support:multidex:1.0.3'