I follow the tutotial for addding interstitial Ad to Android App
https://developers.google.com/mobile-ads-sdk/docs/admob/advanced
I already imported the google-play-services_lib but the compiler complain AdListener is missing.
So I put the GoogleAdMobAdsSdk jar into lib folder The error of missing class gone.
But during compiling, there is an error Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
Seems can't having both GoogleAdMobAdsSdk and google-play-services_lib together
Anyone can help me ?
thanks in advance
Don't include both libraries, only include Google Play Services.
Make sure that your import for the AdListener is
import com.google.android.gms.ads.AdListener;
and not
import com.google.ads.AdListener;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With