Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Gradle Build Failed - Could not find androidx.core:core:1.9.1.

Discussion in 'Android' started by gokhancnr, Nov 23, 2023.

  1. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
    Hi everyone,

    It's been days and I've tried almost everything and search everywhere but couldn't end up with a solution.

    I have a game project both for iOS and Android. It builds well for iOS. But when I try for Android gradle build fails with expection below.

    Here is my settings:
    upload_2023-11-23_9-32-2.png



    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    FAILURE: Build completed with 2 failures.

    1: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    > Could not resolve all files for configuration ':launcher:releaseRuntimeClasspath'.
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0
    project :launcher > project :unityLibrary > com.google.firebase:firebase-iid:21.1.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.media:media:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-utils:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.fragment:fragment:1.0.0
    project :launcher > project :unityLibrary > com.applovin.mediation:google-adapter:22.5.0.0 > com.google.android.gms:play-services-ads:22.5.0
    project :launcher > project :unityLibrary > com.google.games:gpgs-plugin-support:0.11.01 > com.google.android.gms:play-services-nearby:18.0.2
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-utils:1.0.0 > androidx.loader:loader:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.customview:customview:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.viewpager:viewpager:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.coordinatorlayout:coordinatorlayout:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.drawerlayout:drawerlayout:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.slidingpanelayout:slidingpanelayout:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
    project :launcher > project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0 > androidx.legacy:legacy-support-core-ui:1.0.0 > androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
    project :launcher > project :unityLibrary > com.google.firebase:firebase-analytics:21.3.0 > com.google.android.gms:play-services-measurement:21.3.0 > com.google.android.gms:play-services-measurement-impl:21.3.0
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > com.google.android.gms:play-services-base:18.2.0
    project :launcher > project :unityLibrary > com.google.android.gms:play-services-base:18.2.0 > com.google.android.gms:play-services-basement:18.2.0
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > com.applovin.mediation:google-adapter:22.5.0.0 > com.google.android.gms:play-services-ads:22.5.0 > androidx.browser:browser:1.4.0
    project :launcher > project :unityLibrary > com.applovin.mediation:unityads-adapter:4.9.2.0 > com.unity3d.ads:unity-ads:4.9.2 > androidx.webkit:webkit:1.6.1
    project :launcher > project :unityLibrary > com.applovin.mediation:google-adapter:22.5.0.0 > com.google.android.gms:play-services-ads:22.5.0 > com.google.android.gms:play-services-ads-lite:22.5.0 > androidx.work:work-runtime:2.7.0
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > com.applovin.mediation:unityads-adapter:4.9.2.0 > com.unity3d.ads:unity-ads:4.9.2 > androidx.core:core-ktx:1.9.0
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > com.applovin.mediation:google-adapter:22.5.0.0 > com.google.android.gms:play-services-ads:22.5.0 > com.google.android.gms:play-services-ads-lite:22.5.0 > androidx.work:work-runtime:2.7.0
    > Could not find androidx.core:core:1.9.1.
    Searched in the following locations:
    - https://dl.google.com/dl/android/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - https://repo.maven.apache.org/maven2/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/Firebase/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/.m2/repository/androidx/core/core/1.9.1/core-1.9.1.pom
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core-1.9.1.jar
    - file:/C:/Users/sil/source/repos/MyGameProject/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/core.jar
    Required by:
    project :launcher > project :unityLibrary > com.applovin.mediation:unityads-adapter:4.9.2.0 > com.unity3d.ads:unity-ads:4.9.2 > androidx.activity:activity-ktx:1.7.1 > androidx.activity:activity:1.7.1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

    2: Task failed with an exception.
    -----------
    * What went wrong:
    Execution failed for task ':unityLibrary:generateReleaseRFile'.
    > Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary > androidx.legacy:legacy-support-v4:1.0.0
    project :unityLibrary > com.google.firebase:firebase-iid:21.1.0
    project :unityLibrary > androidx.media:media:1.0.0
    project :unityLibrary > androidx.legacy:legacy-support-core-utils:1.0.0
    project :unityLibrary > androidx.legacy:legacy-support-core-ui:1.0.0
    project :unityLibrary > androidx.fragment:fragment:1.0.0
    project :unityLibrary > com.google.android.gms:play-services-ads:22.5.0
    project :unityLibrary > com.google.android.gms:play-services-nearby:18.0.2
    project :unityLibrary > androidx.loader:loader:1.0.0
    project :unityLibrary > androidx.customview:customview:1.0.0
    project :unityLibrary > androidx.viewpager:viewpager:1.0.0
    project :unityLibrary > androidx.coordinatorlayout:coordinatorlayout:1.0.0
    project :unityLibrary > androidx.drawerlayout:drawerlayout:1.0.0
    project :unityLibrary > androidx.slidingpanelayout:slidingpanelayout:1.0.0
    project :unityLibrary > androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
    project :unityLibrary > androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
    project :unityLibrary > com.google.android.gms:play-services-measurement-impl:21.3.0
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary > com.google.android.gms:play-services-base:18.2.0
    project :unityLibrary > com.google.android.gms:play-services-basement:18.2.0
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary > androidx.browser:browser:1.4.0
    project :unityLibrary > androidx.webkit:webkit:1.6.1
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary > androidx.core:core-ktx:1.9.0
    > Could not find androidx.core:core:1.9.1.
    Required by:
    project :unityLibrary > androidx.activity:activity:1.7.1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

    * Get more help at https://help.gradle.org

    BUİLD FAILED in 12s

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    Yours,
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,813
    Does gradleTemplate.properties has androidx enabled?
     
  3. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
    It is like this:

    upload_2023-11-23_13-58-55.png
     
    Last edited: Nov 23, 2023
  4. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    As the error states, it's unable to find 1.9.1 from the remote repositories which means that version doesn't exist.
    You can refer here to confirm only 1.9.x has max of 1.9.0 only.

    Solution
    Change the version specified in the dependencies xml (if you/plugin is using EDMU for resolution of dependencies) to 1.9.0 to fix the issue.
     
    gokhancnr likes this.
  5. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
    I want to thank you all very much.

    I hope 2 last things and very sorry to send one by one..

    I have now 2 new errors below:

    Error - 1

    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    > Duplicate class androidx.lifecycle.ClassesInfoCache found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ClassesInfoCache$CallbackInfo found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ClassesInfoCache$MethodReference found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.CompositeGeneratedAdaptersObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.GeneratedAdapter found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.GenericLifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle$Event found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle$State found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleOwner found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistry found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistry$ObserverWithState found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistryOwner found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycling found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.MethodCallsLogger found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.OnLifecycleEvent found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ReflectiveGenericLifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ReportFragment found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.ReportFragment$ActivityInitializationListener found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.SingleGeneratedAdapterObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)

    Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUİLD FAILED in 6s

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    Error - 2

    > Configure project :launcher
    ============================================================================
    AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.3
    Copyright (c) 2023 AppLovin Ltd. All rights reserved.
    ============================================================================
    WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 33

    This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

    This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=33
    to this project's gradle.properties

    The build will continue, but you are strongly encouraged to update your project to
    use a newer Android Gradle Plugin that has been tested with compileSdk = 33

    > Task :launcher:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :launcher:extractProguardFiles UP-TO-DATE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:mobilenotifications.androidlib:copyReleaseJniLibsProjectAndLocalJars
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:bundleLibCompileToJarRelease
    > Task :unityLibrary:GameServicesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:bundleLibCompileToJarRelease
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseJniLibFolders
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:copyReleaseJniLibsProjectAndLocalJars
    > Task :unityLibrary:GameServicesManifest.plugin:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:copyReleaseJniLibsProjectAndLocalJars
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:copyReleaseJniLibsProjectAndLocalJars
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectAndLocalJars
    > Task :unityLibrary:GameServicesManifest.androidlib:extractReleaseAnnotations
    > Task :unityLibrary:FirebaseApp.androidlib:extractReleaseAnnotations
    > Task :unityLibrary:GameServicesManifest.plugin:extractReleaseAnnotations
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractReleaseAnnotations
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseGeneratedProguardFiles
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseGeneratedProguardFiles
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseGeneratedProguardFiles
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseGeneratedProguardFiles
    > Task :unityLibrary:mobilenotifications.androidlib:extractReleaseAnnotations
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseConsumerProguardFiles
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseConsumerProguardFiles
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseConsumerProguardFiles
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseConsumerProguardFiles
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseShaders
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseGeneratedProguardFiles
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseShaders
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:packageReleaseAssets
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseShaders
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:packageReleaseAssets
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseConsumerProguardFiles
    > Task :unityLibrary:GameServicesManifest.plugin:prepareLintJarForPublish
    > Task :unityLibrary:GameServicesManifest.androidlib:prepareLintJarForPublish
    > Task :unityLibrary:GameServicesManifest.plugin:prepareReleaseArtProfile
    > Task :unityLibrary:GameServicesManifest.plugin:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:prepareReleaseArtProfile
    > Task :unityLibrary:GameServicesManifest.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseAssets
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareLintJarForPublish
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:prepareReleaseArtProfile
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseShaders
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:packageReleaseAssets
    > Task :unityLibrary:mobilenotifications.androidlib:prepareLintJarForPublish
    > Task :unityLibrary:mobilenotifications.androidlib:prepareReleaseArtProfile
    > Task :unityLibrary:GameServicesManifest.plugin:writeReleaseAarMetadata
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:writeReleaseAarMetadata
    > Task :unityLibrary:mobilenotifications.androidlib:extractProguardFiles
    > Task :unityLibrary:GameServicesManifest.androidlib:writeReleaseAarMetadata
    > Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish
    > Task :unityLibrary:mobilenotifications.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:prepareReleaseArtProfile
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseLibraryProguardRules
    > Task :unityLibrary:mobilenotifications.androidlib:writeReleaseAarMetadata
    > Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJavaResource
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:mergeReleaseJavaResource
    > Task :unityLibrary:GameServicesManifest.plugin:mergeReleaseJavaResource
    > Task :unityLibrary:GameServicesManifest.androidlib:mergeReleaseJavaResource
    > Task :unityLibrary:FirebaseApp.androidlib:writeReleaseAarMetadata
    > Task :unityLibrary:GameServicesManifest.androidlib:syncReleaseLibJars
    > Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseJavaResource
    > Task :unityLibrary:FirebaseApp.androidlib:syncReleaseLibJars
    > Task :unityLibrary:GameServicesManifest.plugin:syncReleaseLibJars
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:syncReleaseLibJars
    > Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:bundleReleaseLocalLintAar
    > Task :unityLibrary:GameServicesManifest.plugin:bundleReleaseLocalLintAar
    > Task :unityLibrary:GameServicesManifest.androidlib:bundleReleaseLocalLintAar
    > Task :unityLibrary:GameServicesManifest.androidlib:extractDeepLinksRelease
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:GameServicesManifest.plugin:extractDeepLinksRelease
    > Task :unityLibrary:FirebaseApp.androidlib:bundleReleaseLocalLintAar
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:extractDeepLinksRelease
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseLibraryResources
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseLibraryResources
    > Task :unityLibrary:GameServicesManifest.plugin:bundleLibResRelease NO-SOURCE
    > Task :unityLib<message truncated>
     
  6. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    First try setting Target API to 34 in player settings, if prompted to upgrade, proceed with upgrading it.
     
    gokhancnr likes this.
  7. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
    I did that but the problem was still occur. And then added to gradleTemplate.properties as it's suggested in log file.

    upload_2023-11-23_13-57-1.png


    And here is the latest error:


    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2022.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

    Environment Variables:
    PROCESSOR_ARCHITECTURE = AMD64
    AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
    FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
    CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    COMPUTERNAME = DESKTOP-STFCHAD
    DEBUG_ENV_VAR = UnityHub
    LOGONSERVER = \\DESKTOP-STFCHAD
    AMPLITUDE_TOKEN_GREENBUCKET_PROD = yyzPzalJDwrQcYNuOZam0bhKb26WyyhK
    AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
    ProgramData = C:\ProgramData
    SESSIONNAME = Console
    AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = Ph-837Q6GNodAkyc2MRkxVPUcjlIET4d
    ALLUSERSPROFILE = C:\ProgramData
    SystemRoot = C:\Windows
    windir = C:\Windows
    AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
    ProgramFiles(x86) = C:\Program Files (x86)
    ProgramW6432 = C:\Program Files
    DriverData = C:\Windows\System32\Drivers\DriverData
    OS = Windows_NT
    PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
    HEAP_CLIENT_TOKEN_STAGING = 3786794399
    HOMEPATH = \Users\sil
    FPS_BROWSER_USER_PROFILE_STRING = Default
    AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
    CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_11084_CWCZEQJQLUHRWXOQ
    PROCESSOR_LEVEL = 6
    JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    CommonProgramFiles = C:\Program Files\Common Files
    ZES_ENABLE_SYSMAN = 1
    PUBLIC = C:\Users\Public
    USERDOMAIN_ROAMINGPROFILE = DESKTOP-STFCHAD
    ESET_OPTIONS =
    TEMP = C:\Users\sil\AppData\Local\Temp
    CommonProgramW6432 = C:\Program Files\Common Files
    AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
    AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
    AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
    HOMEDRIVE = C:
    AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
    USERNAME = Gökhan Çınar
    OneDrive = C:\Users\sil\OneDrive
    AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
    PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    AMPLITUDE_TOKEN_REDBUCKET_PROD = QqyoFpcWPi7V17p80_46CF6-sNGRGbHo
    NUMBER_OF_PROCESSORS = 8
    LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
    AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
    ProgramFiles = C:\Program Files
    ComSpec = C:\Windows\system32\cmd.exe
    ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    USERDOMAIN = DESKTOP-STFCHAD
    PROCESSOR_REVISION = 8c01
    TMP = C:\Users\sil\AppData\Local\Temp
    SystemDrive = C:
    AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
    SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
    HEAP_CLIENT_TOKEN = 1717415662
    APPDATA = C:\Users\sil\AppData\Roaming
    Path = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X64\;C:\Program Files (x86)\Pulse Secure\VC142.CRT\X86\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Users\sil\AppData\Local\Microsoft\WindowsApps;C:\Users\sil\.dotnet\tools;C:\Users\sil\AppData\Local\Programs\Microsoft VS Code\bin
    PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
    LOCALAPPDATA = C:\Users\sil\AppData\Local
    USERPROFILE = C:\Users\sil
    WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3


    stderr[
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    > Duplicate class androidx.lifecycle.ClassesInfoCache found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ClassesInfoCache$CallbackInfo found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ClassesInfoCache$MethodReference found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.CompositeGeneratedAdaptersObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.GeneratedAdapter found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.GenericLifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle$Event found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycle$State found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleOwner found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistry found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistry$ObserverWithState found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.LifecycleRegistryOwner found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.Lifecycling found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.MethodCallsLogger found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.OnLifecycleEvent found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ReflectiveGenericLifecycleObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)
    Duplicate class androidx.lifecycle.ReportFragment found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.ReportFragment$ActivityInitializationListener found in modules jetified-androidx.lifecycle.lifecycle-runtime-2.0.0-runtime :)androidx.lifecycle.lifecycle-runtime-2.0.0:) and lifecycle-runtime-2.6.1-runtime (androidx.lifecycle:lifecycle-runtime:2.6.1)
    Duplicate class androidx.lifecycle.SingleGeneratedAdapterObserver found in modules jetified-androidx.lifecycle.lifecycle-common-2.0 (androidx.lifecycle.lifecycle-common-2.0.0.jar) and lifecycle-common-2.6.1 (androidx.lifecycle:lifecycle-common:2.6.1)

    Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUİLD FAILED in 3s
    ]
    stdout[

    > Configure project :launcher
    ============================================================================
    AppLovin Quality Service Plug-in for Gradle and Android Studio Version 5.0.3
    Copyright (c) 2023 AppLovin Ltd. All rights reserved.
    ============================================================================

    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preBuild UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:preBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:mobilenotifications.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseResources UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.androidlib:packageReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GameServicesManifest.plugin:packageReleaseResources UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:generateReleaseResources UP-TO-DATE
    > Task :launcher:extractProguardFiles UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GooglePlayGamesManifest.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:GameServicesManifest.plugin:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:mobilenotifications.androidlib:javaPreCompileRelease UP-TO-DATE
    > Task :unityL<message truncated>
     
    Last edited: Nov 23, 2023
  8. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    Errors show that there are duplicate libraries. It's very hard to guess and find where duplicates exist unless I have a reproducible project. Try this for now.
    1. Enable Main gradle template from player settings
    2. Force resolve from EDMU (A.K.A.. Unity Jar Resolver)
    3. Try making a build
     
  9. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
  10. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    I was able to make an apk successfully with the shared project without any errors.
    I had one build error though but it's due to having multiple manifest entries from Gley's game services manifest file and GPGS manifest, which i resolved by disabling one.
     
  11. gokhancnr

    gokhancnr

    Joined:
    Jul 25, 2020
    Posts:
    20
    @Voxel-Busters It's working. Thank you so much for effort and time!
     
    Voxel-Busters likes this.
  12. burkanagacbuken8

    burkanagacbuken8

    Joined:
    Dec 24, 2022
    Posts:
    1
    thanks to you i solved my problem
     
    Voxel-Busters likes this.