Search Unity

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

Gradle build failed

Discussion in 'Android' started by luoyu510183, Mar 20, 2019.

Thread Status:
Not open for further replies.
  1. majidkhan672222

    majidkhan672222

    Joined:
    Sep 19, 2022
    Posts:
    1
    This post helps me a lot thank you UNITY for this information.
     
  2. jackwilson1

    jackwilson1

    Joined:
    Sep 25, 2022
    Posts:
    1
    I think first we have to diagnose the issue and then we able to solve it otherwise may be there is no chance to solve it without well knowing about problem...
     
  3. guayeah

    guayeah

    Joined:
    Jun 9, 2017
    Posts:
    6
    After hours of trying I found this thread and this solution worked for me.
    Just removing the folder inside the Editor installation folder
    ********\Unity\Hub\Editor\2021.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools
    and building again will automatically create a new folder with the required build-tools for your project
     
  4. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    As this issue keeps coming, let us share a reliable way to fix it. Have a look here(problem 3) for the same.
    1. Download the zip based on the version which gave the issue (29.0.2 or 28.0.3) from the links listed below as per your platform
    2. Extract and rename it to 29.0.2/28.0.3
    3. Paste it in your unity's Android SDK/build-tools folder.

    29.0.2
    Mac
    Windows
    Linux

    28.0.3
    Mac
    Windows
    Linux

    Cheers,
    VB Team
     
    Last edited: Nov 2, 2022
  5. ravi56

    ravi56

    Joined:
    Sep 15, 2021
    Posts:
    7
    i got this error while incude google sigin
     
  6. NavaevDanila

    NavaevDanila

    Joined:
    Feb 14, 2023
    Posts:
    5
    What if this folder doesn't exist?
     
  7. ShinyOpal

    ShinyOpal

    Joined:
    Dec 17, 2022
    Posts:
    32
    Same here
     
  8. SqualidRat56

    SqualidRat56

    Joined:
    Nov 16, 2021
    Posts:
    2
    Problem 1: FAILURE: Build failed with an exception.
    * Where:
    Build file 'C:\Users\eaybu\OneDrive\Masaüstü\MyFirstGame\Temp\gradleOut\launcher\build.gradle' line: 23
    * What went wrong:
    A problem occurred evaluating project ':launcher'.
    > Failed to apply plugin 'com.android.internal.application'.
    > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
    * 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 29s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Problem 2:
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2021.1.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\jdk1.8.0_77\bin\java.exe -classpath "C:\gradle\gradle-6.9\lib\gradle-launcher-6.9.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
    stderr[
    FAILURE: Build failed with an exception.
    * Where:
    Build file 'C:\Users\eaybu\OneDrive\Masaüstü\MyFirstGame\Temp\gradleOut\launcher\build.gradle' line: 23
    * What went wrong:
    A problem occurred evaluating project ':launcher'.
    > Failed to apply plugin 'com.android.internal.application'.
    > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
    * 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 29s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[
    Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f4fe6ee0eb194a68ba39f2b771ad357b>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <4cbd678da9d34d10b88d29af4998c9e0>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    Problem 3: Build completed with a result of 'Failed' in 158 seconds (157706 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Problem 4: UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <4cbd678da9d34d10b88d29af4998c9e0>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <4cbd678da9d34d10b88d29af4998c9e0>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    Unity Version: 2021.1.9f1 anyone know the solution to this
     
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,808
    Your project path contains non ASCII characters "C:\Users\eaybu\OneDrive\Masaüstü\MyFirstGame\Temp\gradleOut\launcher\build.gradle", move it to the path with ASCII characters.

    I would also recommend you switching to 2021 LTS, since 2021.1 is no longer supported
     
  10. dannycataa

    dannycataa

    Joined:
    Mar 7, 2023
    Posts:
    1
    Problem 1:
    Starting a Gradle Daemon, 2 incompatible and 4 stopped Daemons 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 :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :launcher:processReleaseManifest UP-TO-DATE
    > Task :launcher:processReleaseResources UP-TO-DATE
    > Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:compileReleaseSources UP-TO-DATE
    > Task :launcher:prepareLintJar UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
    > Task :unityLibrary:bundleLibResRelease UP-TO-DATE
    > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :launcher:lintVitalRelease
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :launcher:dexBuilderRelease UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :launcher:mergeExtDexRelease UP-TO-DATE
    > Task :launcher:mergeDexRelease UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :launcher:sdkReleaseDependencyData UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :launcher:mergeReleaseNativeLibs UP-TO-DATE
    > Task :launcher:stripReleaseDebugSymbols UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :launcher:packageRelease FAILED
    47 actionable tasks: 4 executed, 43 up-to-date
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    Problem 2:
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:packageRelease'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "C:\Users\danic\.android\debug.keystore": Invalid keystore format
    * 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
    BUILD FAILED in 15s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    Problem 3:
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    Environment Variables:
    USERDOMAIN = DESKTOP-PQ7FCDC
    ProgramFiles = C:\Program Files
    TMP = C:\Users\danic\AppData\Local\Temp
    OneDriveCommercial = C:\Users\danic\OneDrive - Universidad de Castilla-La Mancha
    PROCESSOR_ARCHITECTURE = AMD64
    PROCESSOR_REVISION = 6801
    OS = Windows_NT
    CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_39924_FQBHMJKILXVYJRTS
    PROCESSOR_IDENTIFIER = AMD64 Family 23 Model 104 Stepping 1, AuthenticAMD
    AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
    USERPROFILE = C:\Users\danic
    JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    CommonProgramFiles = C:\Program Files\Common Files
    DriverData = C:\Windows\System32\Drivers\DriverData
    ComSpec = C:\WINDOWS\system32\cmd.exe
    LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
    PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC = C:\Users\Public
    SystemRoot = C:\WINDOWS
    HEAP_CLIENT_TOKEN = 1717415662
    NUMBER_OF_PROCESSORS = 16
    WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
    JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    DEBUG_ENV_VAR = UnityHub
    ProgramW6432 = C:\Program Files
    CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
    TEMP = C:\Users\danic\AppData\Local\Temp
    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\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\ffmpeg\bin;C:\Program Files\dotnet\;C:\Program Files\AutoFirma\AutoFirma;C:\Users\danic\AppData\Local\Microsoft\WindowsApps;C:\Users\danic\spicetify-cli;C:\Users\danic\AppData\Local\Microsoft\WindowsApps;C:\Users\danic\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\danic\AppData\Local\spicetify;C:\Users\danic\AppData\Roaming\npm;C:\Program Files\GPAC;C:\Users\danic\AppData\Local\GitHubDesktop\bin
    USERNAME = danic
    COMPUTERNAME = DESKTOP-PQ7FCDC
    USERDOMAIN_ROAMINGPROFILE = DESKTOP-PQ7FCDC
    PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    SystemDrive = C:
    ALLUSERSPROFILE = C:\ProgramData
    SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
    HEAP_CLIENT_TOKEN_STAGING = 3786794399
    HOMEPATH = \Users\danic
    FPS_BROWSER_USER_PROFILE_STRING = Default
    windir = C:\WINDOWS
    AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
    WSA_PACMAN_HOME = C:\Program Files\WSA PacMan
    PT8HOME = C:\Program Files\Cisco Packet Tracer 8.1.0
    OneDrive = C:\Users\danic\OneDrive - Universidad de Castilla-La Mancha
    PROCESSOR_LEVEL = 23
    CommonProgramW6432 = C:\Program Files\Common Files
    ProgramFiles(x86) = C:\Program Files (x86)
    APPDATA = C:\Users\danic\AppData\Roaming
    SESSIONNAME = Console
    LOGONSERVER = \\DESKTOP-PQ7FCDC
    LOCALAPPDATA = C:\Users\danic\AppData\Local
    VBOX_MSI_INSTALL_PATH = C:\Program Files\Oracle\VirtualBox\
    LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
    HOMEDRIVE = C:
    VBOX_HWVIRTEX_IGNORE_SVM_IN_USE = 1
    ProgramData = C:\ProgramData
    ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    stderr[
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':launcher:packageRelease'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey from store "C:\Users\danic\.android\debug.keystore": Invalid keystore format
    * 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
    BUILD FAILED in 15s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[
    Starting a Gradle Daemon, 2 incompatible and 4 stopped Daemons 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 :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig UP-TO-DATE
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:javaPreCompileRelease UP-TO-DATE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseRFile UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
    > Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
    > Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
    > Task :launcher:processReleaseManifest UP-TO-DATE
    > Task :launcher:processReleaseResources UP-TO-DATE
    > Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
    > Task :launcher:compileReleaseSources UP-TO-DATE
    > Task :launcher:prepareLintJar UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:packageReleaseAssets
    > Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
    > Task :unityLibrary:bundleLibResRelease UP-TO-DATE
    > Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
    > Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
    > Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
    > Task :launcher:lintVitalRelease
    > Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
    > Task :launcher:dexBuilderRelease UP-TO-DATE
    > Task :launcher:desugarReleaseFileDependencies UP-TO-DATE
    > Task :launcher:mergeExtDexRelease UP-TO-DATE
    > Task :launcher:mergeDexRelease UP-TO-DATE
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:processReleaseJavaRes NO-SOURCE
    > Task :launcher:mergeReleaseJavaResource UP-TO-DATE
    > Task :launcher:collectReleaseDependencies UP-TO-DATE
    > Task :launcher:sdkReleaseDependencyData UP-TO-DATE
    > Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
    > Task :launcher:mergeReleaseNativeLibs UP-TO-DATE
    > Task :launcher:stripReleaseDebugSymbols UP-TO-DATE
    > Task :launcher:validateSigningRelease UP-TO-DATE
    > Task :launcher:packageRelease FAILED
    47 actionable tasks: 4 executed, 43 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, Unity.Android.Gradle.AndroidGradle androidGradle, System.String workingdir, System.String task, System.Action`1[T] progress) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
    UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8b5e5c27dd23466cbbae54c94c729526>:0)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <42a64fd733d9417da1ea3a757ad9a96d>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)



    Problem 4:
    Build completed with a result of 'Failed' in 48 seconds (47592 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)




    Problem 5:
    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <42a64fd733d9417da1ea3a757ad9a96d>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <42a64fd733d9417da1ea3a757ad9a96d>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)




    Unity Version: 2021.3.18f1 anyone know the solution to this
     
  11. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,928
    Try deleting the debug.keystore from the mentioned path and open android studio atleast once to recreate it. Next, try on Unity to see if it gets fixed.
     
Thread Status:
Not open for further replies.