Hello, I'm using Google Mobile Ads Mediation on Unity. Version v3.18.2. Its include some network adapter: FAN, IronSource and UnityAds.
On GoogleMobileAdsDependencies have defaut androidPackage:
com.google.android.gms:play-services-ads:18.1.1, when I use PlayServicesResolver to Resolve libraries depend on dependencies, it'll pull androidx but these libs is conflict with some other legacy libs when build, so I try to modify it to com.google.android.gms:play-services-ads:17.2.0 to avoid pull those androix and it built success.
Inside project, I also have proguard-user file to keep important classes in final build.
When I try to open game and see log on Android Studio, it logged like this:
2019-08-23 15:08:19.484 11659-11717/? E/Unity: AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.initialization.OnInitializationCompleteListener
java.lang.ClassNotFoundException: com.google.android.gms.ads.initialization.OnInitializationCompleteListener
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)
Game's not crashed, but Ads fail to initialize and no Ads at all. I look back to proguard-user file to check whether or not keep the class, but it fine.
Here are some line in proguard-user file to keep the class.
-keep class com.google.unity.** {
*;
}
-keep public class com.google.android.gms.ads.**{
public *;
}
-keep public class com.google.ads.**{
public *;
}
-keepattributes *Annotation*
-dontobfuscate
And here is current plugin in Plugins/Android:

I dont know what i'm missing. Anyone have and idea for this problem.
P.s I searched lots of page on Google but there're no workaround to fix it.