Android Build error after adding Levelplay Mediation, Stuck at this for 5 days Please HELP!!!

Before when I only had LevelPlay 7.2.7 mediation I was able to build and run my game.
But since I have upgraded mediation 7.3.0.1, I keep on getting errors

During all of my test builds My target API was either 33 or 31

I’m completely frustrated, Please Help me I’m stuck at this for 5 days!

Error 1:

Configure project :launcher
WARNING: The option setting ‘android.enableR8=false’ is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
WARNING: [Processor] Library ‘C:\Users\Atharva\Documents\KingdomsFinal\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.core.core-1.9.0.aar’ contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.

Error 2:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:launcher:checkReleaseDuplicateClasses’.

1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.iab.omid.library.ironsrc.Omid found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.ScriptInjector found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.AdEvents found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.AdSession found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.AdSessionConfiguration found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.AdSessionContext found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.AdSessionContextType found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.CreativeType found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.DeviceCategory found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.ErrorType found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.FriendlyObstructionPurpose found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.ImpressionType found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.VerificationScriptResource found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.media.InteractionType found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.media.MediaEvents found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.media.PlayerState found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.media.Position found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.adsession.media.VastProperties found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.b found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.c found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.devicevolume.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.devicevolume.b found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.devicevolume.c found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.devicevolume.d found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.devicevolume.e found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.b found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.c found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.d found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.d$a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.e found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.internal.f found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.processor.c found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.processor.d found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.publisher.AdSessionStatePublisher found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.publisher.AdSessionStatePublisher$a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.publisher.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.publisher.b found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.publisher.b$a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:
Duplicate class com.iab.omid.library.ironsrc.utils.a found in modules jetified-com.ironsource.sdk.mediationsdk-7.3.0.1-runtime.jar :)com.ironsource.sdk.mediationsdk-7.3.0.1:) and jetified-mediationsdk-7.3.0.1 (1)-runtime.jar :)mediationsdk-7.3.0.1 (1):slight_smile:

My:
Build Settings: Screenshot 2023 06 05 205453 — Freeimage.host
Manifest : Screenshot 2023 06 05 205716 — Freeimage.host
gradleTemplateProperties : Screenshot-2023-06-05-205716 hosted at ImgBB — ImgBB

Things I have already tried:

  1. Downloading jdk 1.8.0_77
  2. Downloading SDKs from Android Studio SDK manager

any luck with this? I am stuck now with similar problem now.

Hi @GameDevPlus
First error looks to be related to target and min sdk values causing library compatibility issues:
https://stackoverflow.com/questions/73688486/android-studio-error-requires-libraries-and-applications-that-depend-on-it-to-c

Second error (levelplay):
You were able to resolve the dependencies via the Ads Mediation>Levelplay Integration Manager just fine, but running into duplicate classes on build?

Could you make sure you didn’t manually install the levelplay package twice?

last update: it works when I build just APK, but it fails when “Build App Bundle (Google Play)”.
it throws errors about duplicating classes

@kustom
Could you try deleting your resolved libraries?

Assets > Mobile Dependency Resolver > Android Resolver > Delete Resolved Libraries

1 Like

thank you! it worked!

1 Like

Delete Resolved Libraries generate another error that libraries use old version rather than new version. I use Unity 2022.3.2 with IAP, Economy. I have been 3 days don’t have contribution to my company because this issue.

 A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.0.0-runtime (androidx.core:core:1.0.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
     Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.0.0-runtime (androidx.core:core:1.0.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
     Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.0.0-runtime (androidx.core:core:1.0.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.0.0-runtime (androidx.core:core:1.0.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.0.0-runtime (androidx.core:core:1.0.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
     Duplicate class androidx.annotation.AnimRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.AnimatorRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.AnyRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.AnyThread found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.ArrayRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.AttrRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.BinderThread found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.BoolRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.CallSuper found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.CheckResult found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.ColorInt found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.ColorLong found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.ColorRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.DimenRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.Dimension found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.DrawableRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.FloatRange found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.FontRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.FractionRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.GuardedBy found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.HalfFloat found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.IdRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.IntDef found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.IntRange found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.IntegerRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.InterpolatorRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.Keep found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.LayoutRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.LongDef found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.MainThread found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.MenuRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.NavigationRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.NonNull found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.Nullable found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.PluralsRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.Px found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RawRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RequiresApi found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RequiresFeature found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RequiresPermission found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RequiresPermission$Read found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RequiresPermission$Write found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RestrictTo found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.RestrictTo$Scope found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.Size found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.StringDef found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.StringRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.StyleRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.StyleableRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.TransitionRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.UiThread found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.VisibleForTesting found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.WorkerThread found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.annotation.XmlRes found in modules annotation-1.0 (androidx.annotation:annotation:1.0.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
     Duplicate class androidx.arch.core.executor.ArchTaskExecutor found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.executor.ArchTaskExecutor$1 found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.executor.ArchTaskExecutor$2 found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.executor.DefaultTaskExecutor found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.executor.DefaultTaskExecutor$1 found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.executor.TaskExecutor found in modules core-runtime-2.0.0-runtime (androidx.arch.core:core-runtime:2.0.0) and jetified-androidx.arch.core.core-runtime-2.0.0-runtime (:androidx.arch.core.core-runtime-2.0.0:)
     Duplicate class androidx.arch.core.internal.FastSafeIterableMap found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$AscendingIterator found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$DescendingIterator found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$Entry found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$IteratorWithAdditions found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$ListIterator found in modules core-common-2.0 (androidx.arch.core:core-common:2.0.0) and jetified-androidx.arch.core.core-common-2.0 (androidx.arch.core.core-common-2.0.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$SupportRemove found in modules core-common-2.0 (androidx.arch.core:core-common<message truncated>

Hi @restush96
Could you please open a support ticket and share your project build with us. If you have already, please PM me the support ticket number: knowledge center New 2022

There may be something specific about your editor configurations

@cnguyen_unitylevelplay hello Unity, the bugs have been fixed the day later. The problem was I used older version Android Resolver that come from this github play-games-plugin-for-unity/current-build at master · playgameservices/play-games-plugin-for-unity · GitHub. I should have updated to later version and make sure check patch mainTemplate.grade, gradleTemplate.properties, copy and patch settingsTemplate gradle from 2022.2 in Android Resolver Settings.

1 Like