title: AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.MobileAds
body: <p>I am integrating Unity admob in my unity game which is build in Unity 2018.1.1f1 and i am using following.</p>
  
  <ul>
  <li>Unity 2018.1.1f1</li>
  <li>Admob plugin v 3.15.1</li>
  <li>JDK 8</li>
  <li>SDK Lollipop</li>
  <li>Google play services [latest]</li>
  </ul>
  
  <p>and getting the following error in logcat. while i have try Android resolver version but its not fix it while if select force Android resolver version than i get gradle failed to fetch dependencies message.</p>
  
  <pre><code> AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.MobileAds
      java.lang.ClassNotFoundException: com.google.android.gms.ads.MobileAds
          at java.lang.Class.classForName(Native Method)
          at java.lang.Class.forName(Class.java:400)
          at java.lang.Class.forName(Class.java:326)
          at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
          at com.unity3d.player.UnityPlayer.c(Unknown Source)
          at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
          at android.os.MessageQueue.next(MessageQueue.java:392)
          at android.os.Looper.loop(Looper.java:136)
          at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
       Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAds" on path: DexPathList[[zip file "/data/app/com.HSquare.PaintIt-2/base.apk"],nativeLibraryDirectories=[/data/app/com.HSquare.PaintIt-2/lib/arm, /data/app/com.HSquare.PaintIt-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
          at dalvik.system.BaseDexClassLoader.findClass(BaseDexC
  </code></pre>