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

The error of building an application from Windows to android

Discussion in 'Android' started by gamemereal, Aug 24, 2022.

  1. gamemereal

    gamemereal

    Joined:
    Aug 20, 2022
    Posts:
    3
    I made a project on Windows, but after switching to Android, an error appeared when building the application
    Mistakes :

    Starting a Gradle Daemon, 1 incompatible and 5 stopped Daemons could not be reused, use --status for details

    FAILURE: Build failed with an exception.

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

    Build completed with a result of 'Failed' in 208 seconds (208281 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr)

    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <7105be432fb64891b07085914e6cd5c1>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <7105be432fb64891b07085914e6cd5c1>:0
    UnityEngine.GUIUtility:processEvent (int,intptr)
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,679
    Please attach Editor.log, since these are only the titles of errors.
     
  3. gamemereal

    gamemereal

    Joined:
    Aug 20, 2022
    Posts:
    3
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,679
    It says "
    > 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."

    So basically remove non-ASCII characters from project path and you're good to go
     
  5. gamemereal

    gamemereal

    Joined:
    Aug 20, 2022
    Posts:
    3
    Thanks