Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cannot build my aplication

Discussion in 'Scripting' started by unity_YvfXJN186TCIYw, Jun 3, 2022.

  1. unity_YvfXJN186TCIYw

    unity_YvfXJN186TCIYw

    Joined:
    Jul 15, 2020
    Posts:
    3
    I keep getting the same error and have not found any solutions online, now i can't build the aplication for test.

    Error 1:
    Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=true' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8

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

    Error 2:

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Users\Israel\Dragon Flight\Temp\gradleOut\unityLibrary\build.gradle' line: 99

    * What went wrong:
    A problem occurred evaluating project ':unityLibrary'.

    > No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
    Possible solutions: notify(), tokenize(), size(), size()

    * 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 2m 4s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

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


    Error 3:
    Error displaying dialog: The current process has used all of its system allowance of handles for Window Manager objects.

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


    Error 4:
    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Java\jdk1.8.0_202\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.1.28f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

    stderr[

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Users\Israel\Dragon Flight\Temp\gradleOut\unityLibrary\build.gradle' line: 99

    * What went wrong:
    A problem occurred evaluating project ':unityLibrary'.
    > No signature of method: java.lang.String.positive() is applicable for argument types: () values: []
    Possible solutions: notify(), tokenize(), size(), size()

    * 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 2m 4s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[
    Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

    > Configure project :launcher
    WARNING: The option setting 'android.enableR8=true' is deprecated.
    It will be removed in version 5.0 of the Android Gradle plugin.
    You will no longer be able to disable R8
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <04b7ada17ece4f3da2133228ef06844e>: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 <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <04b7ada17ece4f3da2133228ef06844e>: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 <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <04b7ada17ece4f3da2133228ef06844e>: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 <04b7ada17ece4f3da2133228ef06844e>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <04b7ada17ece4f3da2133228ef06844e>: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 <5a3f0fb386cb4cc1809e4d066057cf15>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,954
    First find if you can build a blank project. If you can't then go fix your Unity and/or Android SDK/NDK / Java installation.

    If you can build the empty, then start bisecting between your a blank project and your full project until you find what is stopping you.
     
    Bunny83 likes this.
  3. unity_YvfXJN186TCIYw

    unity_YvfXJN186TCIYw

    Joined:
    Jul 15, 2020
    Posts:
    3
    I will try
     
  4. unity_YvfXJN186TCIYw

    unity_YvfXJN186TCIYw

    Joined:
    Jul 15, 2020
    Posts:
    3
    I realized the error is happening after i added the firebase sdk and the google play games plugin.
     
  5. lordconstant

    lordconstant

    Joined:
    Jul 4, 2013
    Posts:
    389