Android Question Exoplayer error - gradle.properties - (AppLovin MAX SDK)

Murilo Besse

Member
Licensed User
Longtime User
Hi,
I'm trying to migrate Mopub SDK to AppLovin MAX SDK (MoPub has been acquired by AppLovin).
I've manage to show Intersticial Ads in apps that doesn't uses Exoplayer library. With Exoplayer I got this error:

B4X:
java.lang.AbstractMethodError: abstract method "void com.google.android.exoplayer2.Player$EventListener.onEvents(com.google.android.exoplayer2.Player, com.google.android.exoplayer2.Player$Events)"
at com.google.android.exoplayer2.ExoPlayerImpl.lambda$new$0$ExoPlayerImpl(ExoPlayerImpl.java:168)
at com.google.android.exoplayer2.ExoPlayerImpl$$Lambda$1.invoke(Unknown Source:12)
at com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.iterationFinished(ListenerSet.java:309)
at com.google.android.exoplayer2.util.ListenerSet.handleMessage(ListenerSet.java:253)
at com.google.android.exoplayer2.util.ListenerSet.bridge$lambda$0$ListenerSet(Unknown Source:4)
at com.google.android.exoplayer2.util.ListenerSet$$Lambda$0.handleMessage(Unknown Source:6)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:225)
at android.app.ActivityThread.main(ActivityThread.java:7564)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)



I contacted the developers on Github, and got this answer:
"We've seen this crash before. Can you try adding android.enableDexingArtifactTransform=false to gradle.properties? That should fix the crash."

How can I do this in B4X ?
 
Top