Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Android Gradle build error: value (4345213088) > 0x00000000ffffffffL

Discussion in 'Android' started by wirelessdreamer, May 3, 2020.

  1. wirelessdreamer

    wirelessdreamer

    Joined:
    Apr 13, 2016
    Posts:
    128
    What does this mean the error is?

    Using Unity 2019.2.21.f1

    * What went wrong:
    Execution failed for task ':packageRelease'.
    > 1 exception was raised by workers:
    java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: value (4345213088) > 0x00000000ffffffffL

    Full Error:

    CommandInvokationFailure: Gradle build failed.
    D:/Unity Installs/2019.2.21f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "D:\Unity Installs\2019.2.21f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

    stderr[

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':packageRelease'.
    > 1 exception was raised by workers:
    java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: value (4345213088) > 0x00000000ffffffffL


    * 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 10m 4s
    ]
    stdout[
    > Task :preBuild UP-TO-DATE
    > Task :preReleaseBuild
    > Task :compileReleaseAidl NO-SOURCE
    > Task :compileReleaseRenderscript NO-SOURCE
    > Task :checkReleaseManifest
    > Task :generateReleaseBuildConfig
    > Task :prepareLintJar
    > Task :generateReleaseSources
    > Task :javaPreCompileRelease
    > Task :mainApkListPersistenceRelease
    > Task :generateReleaseResValues
    > Task :generateReleaseResources
    > Task :mergeReleaseResources
    > Task :createReleaseCompatibleScreenManifests
    > Task :processReleaseManifest
    > Task :processReleaseResources
    > Task :compileReleaseJavaWithJavac
    > Task :compileReleaseSources
    > Task :lintVitalRelease
    > Task :mergeReleaseShaders
    > Task :compileReleaseShaders
    > Task :generateReleaseAssets
    > Task :mergeReleaseAssets
    > Task :validateSigningRelease
    > Task :signingConfigWriterRelease
    > Task :checkReleaseDuplicateClasses
    > Task :transformClassesWithDexBuilderForRelease
    > Task :transformDexArchiveWithExternalLibsDexMergerForRelease
    > Task :transformDexArchiveWithDexMergerForRelease
    > Task :mergeReleaseJniLibFolders
    > Task :transformNativeLibsWithMergeJniLibsForRelease
    > Task :transformNativeLibsWithStripDebugSymbolForRelease
    > Task :processReleaseJavaRes NO-SOURCE
    > Task :transformResourcesWithMergeJavaResForRelease
    > Task :packageRelease
    > Task :packageRelease FAILED

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    27 actionable tasks: 27 executed
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <502f1b7df2d7430696af84c6f02852ed>: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 <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <502f1b7df2d7430696af84c6f02852ed>: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 <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <502f1b7df2d7430696af84c6f02852ed>: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 <502f1b7df2d7430696af84c6f02852ed>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <502f1b7df2d7430696af84c6f02852ed>: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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
    ScriptBatch:BuildQuestVR() (at Assets/Core/Editor/ScriptBatch.cs:101)
     
  2. wirelessdreamer

    wirelessdreamer

    Joined:
    Apr 13, 2016
    Posts:
    128
    we're using built in unity android build tools, as is recommended.
     
  3. wirelessdreamer

    wirelessdreamer

    Joined:
    Apr 13, 2016
    Posts:
    128
    exporting the build from unity and building with android studio gives the same error as well
     
  4. wirelessdreamer

    wirelessdreamer

    Joined:
    Apr 13, 2016
    Posts:
    128
    Doing a platform switch from Android, to Windows, and back to Android cleared the error.
     
unityunity