title: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;
body: <p>I got this error when we run apk file of our application. In <code>build.gradle</code> we set multidex and compile multidex is existed in Gradle file . We changed the version of Firebase versions to above and below but that's did not work for us . This is our full log in Run console :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>D/AndroidRuntime: Shutting down VM
  E/AndroidRuntime: FATAL EXCEPTION: main
                    Process: ir.parsinteam.ojoobe, PID: 5141
                    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/Api$zzf;
                        at com.google.android.gms.location.LocationServices.&lt;clinit&gt;(Unknown Source)
                        at ir.adad.client.LocationMethods.callAndroidLocationService(LocationMethods.java:101)
                        at ir.adad.client.LocationMethods.&lt;init&gt;(LocationMethods.java:40)
                        at ir.adad.client.LocationMethods.getInstance(LocationMethods.java:45)
                        at ir.adad.client.AdadScript.urlParameters(AdadScript.java:390)
                        at ir.adad.client.AdadScript.downloadClient(AdadScript.java:148)
                        at ir.adad.client.AdadScript.initializeInternal(AdadScript.java:134)
                        at ir.adad.client.AdadScript.initializeClient(AdadScript.java:110)
                        at ir.adad.client.Adad.initialize(Adad.java:22)
                        at ir.parsinteam.ojoobe.activities.MainActivity.onCreate(MainActivity.java:62)
                        at android.app.Activity.performCreate(Activity.java:6662)
                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
                        at android.app.ActivityThread.-wrap12(ActivityThread.java)
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
                        at android.os.Handler.dispatchMessage(Handler.java:102)
                        at android.os.Looper.loop(Looper.java:154)
                        at android.app.ActivityThread.main(ActivityThread.java:6077)
                        at java.lang.reflect.Method.invoke(Native Method)
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
                     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.api.Api$zzf" on path: DexPathList[[zip file "/data/app/ir.parsinteam.ojoobe-2/base.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_dependencies_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_0_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_1_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_2_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_3_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_4_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_5_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_6_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_7_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_8_apk.apk", zip file "/data/app/ir.parsinteam.ojoobe-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/ir.parsinteam.ojoobe-2/lib/x86, /data/app/ir.parsinteam.ojoobe-2/base.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_dependencies_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_0_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_1_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_2_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_3_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_4_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_5_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_6_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_7_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_8_apk.apk!/lib/x86, /data/app/ir.parsinteam.ojoobe-2/split_lib_slice_9_apk.apk!/lib/x86, /system/lib, /vendor/lib]]
                        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                        at com.google.android.gms.location.LocationServices.&lt;clinit&gt;(Unknown Source) 
                        at ir.adad.client.LocationMethods.callAndroidLocationService(LocationMethods.java:101) 
                        at ir.adad.client.LocationMethods.&lt;init&gt;(LocationMethods.java:40) 
                        at ir.adad.client.LocationMethods.getInstance(LocationMethods.java:45) 
                        at ir.adad.client.AdadScript.urlParameters(AdadScript.java:390) 
                        at ir.adad.client.AdadScript.downloadClient(AdadScript.java:148) 
                        at ir.adad.client.AdadScript.initializeInternal(AdadScript.java:134) 
                        at ir.adad.client.AdadScript.initializeClient(AdadScript.java:110) 
                        at ir.adad.client.Adad.initialize(Adad.java:22) 
                        at ir.parsinteam.ojoobe.activities.MainActivity.onCreate(MainActivity.java:62) 
                        at android.app.Activity.performCreate(Activity.java:6662) 
                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) 
                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599) 
                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) 
                        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) 
                        at android.os.Handler.dispatchMessage(Handler.java:102) 
                        at android.os.Looper.loop(Looper.java:154) 
                        at android.app.ActivityThread.main(ActivityThread.java:6077) 
                        at java.lang.reflect.Method.invoke(Native Method) 
                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) 
                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) 
  Application terminated.</code></pre>
  </div>
  </div>
  </p>