I'm truing to build the game in android. I get a pop up message saying "1 exception raised by workers. see the console for details" and get the following error.
CommandInvokationFailure: Gradle build failed. C:/Program Files/Unity/Hub/Editor/2019.4.28f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.4.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
java.lang.RuntimeException: Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class android.support.v4.os.ResultReceiver found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class android.support.v4.os.ResultReceiver$1 found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules classes.jar (:androidx.core.core-1.2.0:) and classes.jar (androidx.core:core:1.1.0) Duplicate class androidx.annotation.AnimRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.AnimatorRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.AnyRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.AnyThread found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.ArrayRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.AttrRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.BinderThread found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.BoolRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.CallSuper found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.CheckResult found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.ColorInt found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.ColorLong found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.ColorRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.ContentView found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.DimenRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.Dimension found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.DrawableRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.FloatRange found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.FontRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.FractionRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.GuardedBy found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.HalfFloat found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.IdRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.InspectableProperty found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.InspectableProperty$EnumEntry found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.InspectableProperty$FlagEntry found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.InspectableProperty$ValueType found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.IntDef found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.IntRange found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.IntegerRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.InterpolatorRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.Keep found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.LayoutRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.LongDef found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.MainThread found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.MenuRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.NavigationRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.NonNull found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.Nullable found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.PluralsRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.Px found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RawRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RequiresApi found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RequiresFeature found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RequiresPermission found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RequiresPermission$Read found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RequiresPermission$Write found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RestrictTo found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.RestrictTo$Scope found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.Size found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.StringDef found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.StringRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.StyleRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.StyleableRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.TransitionRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.UiThread found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.VisibleForTesting found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.WorkerThread found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.annotation.XmlRes found in modules androidx.annotation.annotation-1.1.0.jar (androidx.annotation.annotation-1.1.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0) Duplicate class androidx.arch.core.internal.FastSafeIterableMap found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$AscendingIterator found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$DescendingIterator found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$Entry found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$IteratorWithAdditions found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$ListIterator found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.internal.SafeIterableMap$SupportRemove found in modules androidx.arch.core.core-common-2.0.0.jar (androidx.arch.core.core-common-2.0.0.jar) and core-common-2.0.0.jar (androidx.arch.core:core-common:2.0.0) Duplicate class androidx.arch.core.util.Function found in modules androidx.arch.core.core-common-2.0.0.jar (1 exception was raised by workers:
Your answer
Follow this Question
Related Questions
Unable to merge android manifests 1 Answer
Unable to convert classes into dex format 12 Answers
How to override string resources of other android plugins in Unity 0 Answers
How turn On/Off android display backlight using C# only in Unity3d 1 Answer
CommandInvokationFailure while using *.aar file in unity project 1 Answer