Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FATAL EXCEPTION: GoogleApiHandler

In my project i'm using the monetization service(Vungle/AppLovin). When I'm trying to load an ad, i get this exception

E/AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler Process: kz.ikar, PID: 3673 java.lang.NoSuchMethodError: No virtual method setChannelId(Ljava/lang/String;)Landroid/support/v4/app/NotificationCompat$Builder; in class Landroid/support/v4/app/NotificationCompat$Builder; or its super classes (declaration of 'android.support.v4.app.NotificationCompat$Builder' appears in /data/app/kz.ikar-2oCl4DY4J8w7wP-jirbYvA==/split_lib_dependencies_apk.apk) at com.google.android.gms.common.GoogleApiAvailability.zza(Unknown Source:225) at com.google.android.gms.common.GoogleApiAvailability.zza(Unknown Source:15) at com.google.android.gms.common.api.internal.zzbm.zzc(Unknown Source:4) at com.google.android.gms.common.api.internal.zzbo.onConnectionFailed(Unknown Source:104) at com.google.android.gms.common.api.internal.zzbo.connect(Unknown Source:83) at com.google.android.gms.common.api.internal.zzbo.zza(Unknown Source:47) at com.google.android.gms.common.api.internal.zzbm.handleMessage(Unknown Source:283) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65)

In my project I have two fragments in one activity. The user gets an ad in the second one. If I load an ad from the activity, it works well. What can be the cause of this issue?

By the way both ad networks(Vungle and AppLovin) return this exception

like image 614
Sereekjan Avatar asked Oct 29 '22 20:10

Sereekjan


1 Answers

I had the same problem and I fixed it downgrading to firebase Google Play services 11.6.0

like image 94
keikei38 Avatar answered Dec 19 '22 15:12

keikei38