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,099
  • 2
  • 20
  • 36

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
  • 20,150
  • 8
  • 49
  • 91