Error when update Purchasing Package from 4.9.4 to 4.12.0

Recently, i update Purchasing Package from 4.9.4 to 4.12.0 and I got this error when try build project to .apk:
(I use GoogleMobileAds-v8.5.2 and firebase_unity_sdk_11.6.0)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

n-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.BoolRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.CallSuper found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.CheckResult found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.ChecksSdkIntAtLeast found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.ColorInt found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.ColorLong found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.ColorRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.ContentView found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.DimenRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Dimension found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Discouraged found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.DisplayContext found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.DoNotInline found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.DrawableRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.FloatRange found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.FontRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.FractionRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.GravityInt found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.GuardedBy found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.HalfFloat found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.IdRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.InspectableProperty found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.InspectableProperty$EnumEntry found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.InspectableProperty$FlagEntry found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.InspectableProperty$ValueType found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.IntDef found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.IntRange found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.IntegerRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.InterpolatorRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Keep found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.LayoutRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.LongDef found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.MainThread found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.MenuRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.NavigationRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.NonNull found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.NonUiContext found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Nullable found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.PluralsRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Px found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RawRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RequiresApi found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RequiresFeature found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RequiresPermission found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RequiresPermission$Read found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RequiresPermission$Write found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RestrictTo found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.RestrictTo$Scope found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.Size found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.StringDef found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.StringRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.StyleRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.StyleableRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotation.annotation-1.5.0.jar) and annotation-1.3.0.jar (androidx.annotation:annotation:1.3.0)
Duplicate class androidx.annotation.TransitionRes found in modules androidx.annotation.annotation-1.5.0.jar (androidx.annotatio

I’m getting the same error after updating from 4.10.0 to 4.12.0.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ā€˜:launcher:checkReleaseDuplicateClasses’.

1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
Duplicate class androidx.activity.Cancellable found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$1 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$2 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$2$1 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$2$2 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$3 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$4 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$5 found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$Api19Impl found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ComponentActivity$NonConfigurationInstances found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.ImmLeaksCleaner found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.OnBackPressedCallback found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.OnBackPressedDispatcher found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)
Duplicate class androidx.activity.OnBackPressedDispatcher$LifecycleOnBackPressedCancellable found in modules jetified-activity-1.3.1-runtime.jar (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.5.1-runtime.jar (:androidx.activity.activity-1.5.1:)

Could you try here - Unity Services - Unity Discussions

1 Like