0

I am creating an application with android.support.v4.view.ViewPager and AdMob.

My heap size is -Xms1024m -Xmx1024m

App will work if I use both separately, but integrated together I get:

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdView" on path: DexPathList[[zip file "/data/app/info.androidhive.imageslider-2.apk"],nativeLibraryDirectories=[/data/app-lib/info.androidhive.imageslider-2, /vendor/lib, /system/lib]]

App properties enter image description here

Sonia John Kavery
  • 2,022
  • 2
  • 19
  • 35

1 Answers1

0

You need to include a dependency on Google Play Services (or at least the Admob portion of it). Your app doesn't include the Admob classes.

William
  • 19,900
  • 8
  • 46
  • 89