Search Unity

Bug Gradle Error: Problem with Gradle build with any project

Discussion in 'Editor & General Support' started by hackon189, Dec 9, 2023.

  1. hackon189

    hackon189

    Joined:
    Oct 3, 2022
    Posts:
    1
    I create new project and want to build "blank" project to apk. But after I get these errors

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

    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    FAILURE: Build failed with an exception.
    * What went wrong:
    Gradle could not start your build.
    > Cannot create service of type BuildTreeActionExecutor using method LauncherServices$ToolingBuildTreeScopeServices.createActionExecutor() as there is a problem with parameter #1 of type List<BuildActionRunner>.
    > Could not create service of type FileHasher using GradleUserHomeServices.createCachingFileHasher().
    > Timeout waiting to lock file hash cache (C:\Users\Yehor\.gradle\caches\7.2\fileHashes). It is currently in use by another Gradle instance.
    Owner PID: 24628
    Our PID: 15580
    Owner Operation:
    Our operation:
    Lock file: C:\Users\Yehor\.gradle\caches\7.2\fileHashes\fileHashes.lock
    * 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

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

    Attached Files: