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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused

Discussion in 'Editor & General Support' started by Wuxinberry, Dec 5, 2021.

  1. Wuxinberry

    Wuxinberry

    Joined:
    Dec 4, 2021
    Posts:
    1
    I' m new to Unity. I tried to build an apk to oculus quest 2, but an error occured as below.

    Enviroment:
    I'm using unity 2021.1.0 on Windows 11. And I have no custom gradle file. I also tried unity 2019.4.33 ans it didn't work. Any useful suggestion will be highly appreciated!

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


    Here's the log.

    Code (CSharp):
    1.  
    2. FAILURE: Build failed with an exception.
    3. * What went wrong:
    4. A problem occurred configuring project ':launcher'.
    5. > Could not resolve all artifacts for configuration ':launcher:classpath'.
    6.    > Could not resolve com.android.tools.build:gradle:3.4.0.
    7.      Required by:
    8.          project :launcher
    9.       > Could not resolve com.android.tools.build:gradle:3.4.0.
    10.          > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'.
    11.             > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.4.0/gradle-3.4.0.pom'.
    12.                > Connect to dl.google.com:443 [dl.google.com/142.250.179.142] failed: Connection timed out: connect
    13.  
    14. * Try:
    15. 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.
    16.  
    17. * Get more help at https://help.gradle.org
    18.  
    19. BUILD FAILED in 1m 13s
    20. Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    21.  
    22. UnityEngine.GUIUtility:ProcessEvent (int,intptr)
     
  2. sevdigim1451

    sevdigim1451

    Joined:
    May 2, 2020
    Posts:
    40
    Did you find it? I saw about same error in the console! How did you solve this issue?
     
  3. sherazdilbar

    sherazdilbar

    Joined:
    May 30, 2022
    Posts:
    1
    facing these errors
    1-Starting a Gradle Daemon, 1 incompatible Daemon could not be reused
    2-An exception has occurred in the compiler (1.8.0-adoptopenjdk). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report.
    3-
    UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in
    4-Build completed with a result of 'Failed' in 1155 seconds (1154985