Search Unity

Bug Failed Build Android (Gradle/Java Errors)

Discussion in 'Editor & General Support' started by jorisjanbroers, Mar 9, 2023.

  1. jorisjanbroers

    jorisjanbroers

    Joined:
    Jan 10, 2023
    Posts:
    19
    Hi,

    When I try to build my project for Android, it fails with the following error messages:

    upload_2023-3-9_14-1-37.png

    Notes: I'm using packages like IronSource SDK and Push Notifications (cannot remove it for some reason without breaking it...)
    Unity v 2021.3.20f1
    External Tool recommended version downloaded with Hub

    Hopefully someone can help me out!
    Thanks


    Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details
    > 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
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:IronSource.plugin:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:IronSource.plugin:preReleaseBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
    > Task :unityLibrary:generateReleaseResValues
    > Task :unityLibrary:IronSource.plugin:generateReleaseResValues
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig
    > Task :unityLibrary:IronSource.plugin:generateReleaseResources
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
    > Task :unityLibrary:IronSource.plugin:packageReleaseResources
    > Task :launcher:generateReleaseResValues
    > Task :launcher:generateReleaseResources
    > Task :unityLibrary:IronSource.plugin:extractDeepLinksRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease
    > Task :launcher:createReleaseCompatibleScreenManifests
    > Task :launcher:extractDeepLinksRelease
    > Task :launcher:javaPreCompileRelease
    > Task :unityLibrary:packageReleaseResources
    > Task :unityLibrary:extractDeepLinksRelease
    > Task :unityLibrary:processReleaseManifest
    > Task :unityLibrary:IronSource.plugin:processReleaseManifest
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:IronSource.plugin:compileReleaseLibraryResources
    > Task :unityLibrary:generateReleaseBuildConfig
    > Task :unityLibrary:IronSource.plugin:generateReleaseBuildConfig
    > Task :unityLibrary:javaPreCompileRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
    > Task :unityLibrary:IronSource.plugin:javaPreCompileRelease
    > Task :unityLibrary:compileReleaseLibraryResources
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
    > Task :unityLibrary:IronSource.plugin:prepareLintJarForPublish
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
    > Task :unityLibrary:mergeReleaseShaders
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
    > Task :unityLibrary:IronSource.plugin:mergeReleaseShaders
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:IronSource.plugin:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:IronSource.plugin:packageReleaseAssets
    > Task :unityLibrary:IronSource.plugin:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:parseReleaseLocalResources
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources
    > Task :unityLibrary:IronSource.plugin:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:mergeReleaseJniLibFolders
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:IronSource.plugin:mergeReleaseNativeLibs
    > Task :unityLibrary:IronSource.plugin:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:IronSource.plugin:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
    > Task :unityLibrary:IronSource.plugin:generateReleaseRFile
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:processReleaseJavaRes
    > Task :unityLibrary:prepareLintJarForPublish
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :unityLibrary:parseReleaseLocalResources
    > Task :unityLibrary:generateReleaseRFile
    > Task :launcher:processReleaseManifest
    > Task :launcher:prepareLintJar
    > Task :unityLibrary:mergeReleaseNativeLibs
    > Task :unityLibrary:bundleLibResRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
    > Task :unityLibrary:IronSource.plugin:compileReleaseJavaWithJavac
    > Task :unityLibrary:IronSource.plugin:bundleLibRuntimeToJarRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease
    > Task :unityLibrary:IronSource.plugin:bundleLibCompileToJarRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:stripReleaseDebugSymbols
    > Task :launcher:checkReleaseDuplicateClasses FAILED
    > Task :launcher:mergeReleaseResources
    > Task :unityLibrary:compileReleaseJavaWithJavac
    63 actionable tasks: 63 executed
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)




    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    Note: /Users/joris/Documents/Apps/Balloon_Game/UnityProject/BalloonGame/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/unity3d/player/UnityPlayerActivity.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    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 android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.6.0-runtime.jar (:androidx.core.core-1.6.0:) and core-1.2.0-runtime.jar (androidx.core:core:1.2.0)
    Duplicate class androidx.annotation.AnimRes found in modules androidx.annotation.annotation-1.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.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.2.0.jar (androidx.annotation.annotation-1.2.0.jar) and annotation-1.1.0.jar (androidx.annotation:annotation:1.1.0)
    Duplicate class androidx.arch.core.executor.ArchTaskExecutor found in modules androidx.arch.core.core-runtime-2.2.0-rc01-runtime.jar (:androidx.arch.core.core-runtime-2.2.0-rc01:) and core-runtime-2.0.0-runtime.jar (androidx.arch.core:core-runtime:2.0.0)
    Duplicate class androidx.arch.core.executor.DefaultTaskExecutor found in modules androidx.arch.core.core-runtime-2.2.0-rc01-runtime.jar (:androidx.arch.core.core-runtime-2.2.0-rc01:) and core-runtime-2.0.0-runtime.jar (androidx.arch.core:core-runtime:2.0.0)
    Duplicate class androidx.arch.core.e<message truncated>
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
  3. jorisjanbroers

    jorisjanbroers

    Joined:
    Jan 10, 2023
    Posts:
    19
    Hmm thanks for your response, but not sure how to fix it. Where could you see that there are conflicting dependencies? And as the link you've shared shows, it would already take the highest version possible.
    Any thoughts? Maybe resetting (if possible) the gradle? Or does this from the debug console tell me something: Task :launcher:checkReleaseDuplicateClasses FAILED
     
  4. jorisjanbroers

    jorisjanbroers

    Joined:
    Jan 10, 2023
    Posts:
    19
  5. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    I'd start by exporting Android Studio project from Unity and building there. For each "duplicate class" error you can see two jar files that class comes from. Those two files either come from Unity project or from dependencies and it's a mater of correcting gradle files so exactly one is chosen.