myTargetSDK / mytarget-unity

unity myTarget sdk
GNU Lesser General Public License v3.0
4 stars 2 forks source link

Android build error : duplicate class com.google.android.exoplayer #2

Open uchar opened 2 years ago

uchar commented 2 years ago

I add MyTarget through Applovin Max Sdk latest version ( 5.4.3) and after enabling MyTarget, I have the following build error :

> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class 
com.google.android.exoplayer2.ui.DownloadNotificationHelper found in modules jetified-com.google.android.exoplayer.exoplayer-core-2.16.1-runtime.jar 
(:com.google.android.exoplayer.exoplayer-core-2.16.1:) and jetified-com.google.android.exoplayer.exoplayer-ui-2.15.1-runtime.jar (:com.google.android.exoplayer.exoplayer-ui-2.15.1:) 

What should I do to fix this?

alxiw commented 2 years ago

Try to add dependency from exoplayer with a specific version explicitly