Search Issue Tracker

Fixed in 2019.3

Fixed in 2019.1, 2019.2

Votes

0

Found in

2019.1.7f1

2019.2.0b6

Issue ID

1164013

Regression

Yes

[Android] Gradle build fails when there's a settings.gradle file in the project folder

Mobile

-

Repro steps:
1. Open attached project
2. Build for Android

Actual: Build fails with "Project directory 'C:\Users\user.name\Documents\Projects\ProjectFolder\Temp\gradleOut' is not part of the build defined by settings file 'C:\Users\user.name\Documents\Projects\ProjectFolder\settings.gradle'. If this is an unrelated build, it must have its own settings file."

Reproducible with: 2019.1.12f1, 2019.2.0b10
Didn't reproduce on: 2017.4.29f1, 2018.4.3f1, 2019.1.6f1, 2019.2.0b5, 2019.3.0a5

Notes:
- Build succeeds throughout 2019.3 but since 2019.3.0a6 there's a "CommandWithNoStdoutInvokationFailure: Gradle initialization failed." error thrown after the build

  1. Response avatar

    Resolution Note (fix version 2019.3):

Comments (1)

  1. B66c0a4d08196a8ccbef5aff8d82f311?d=mm

    pdafedar

    Sep 09, 2019 08:56

    When can we expect this issue fix in the 2018.4 LTS version? I can still able to reproduce this in 2018.4.8f1 (latest LTS atm)

    FAILURE: Build failed with an exception.

    * What went wrong:
    Project directory '/Volumes/workspace/Repository/HelloWorldGame/GameContainer/Temp/StagingArea/gradleWarmupArea' is not part of the build defined by settings file '/Volumes/workspace/Repository/HelloWorldGame/settings.gradle'. If this is an unrelated build, it must have its own settings file.

    * 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 3s
    Uploading Crash Report
    CommandWithNoStdoutInvokationFailure: Gradle initialization failed.
    at UnityEditor.Android.Command.RunWithShellExecute (System.String command, System.String args, System.String workingdir, System.String errorMsg) [0x00058] in <62f761e6ab1445a38cdcb4ac36512695>:0
    at UnityEditor.Android.AndroidJavaTools.RunJavaWithShellExecute (System.String args, System.String workingdir, System.String error) [0x00007] in <62f761e6ab1445a38cdcb4ac36512695>:0
    at UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) [0x0000f] in <62f761e6ab1445a38cdcb4ac36512695>:0
    Rethrow as GradleInvokationException: Gradle initialization failed.
    at UnityEditor.Android.GradleWrapper.WarmupGradle (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingDir, System.String baseCommand) [0x0002f] in <62f761e6ab1445a38cdcb4ac36512695>:0
    at UnityEditor.Android.PostProcessAndroidPlayer+<ExecuteWarmup>c__AnonStorey0.<>m__0 () [0x00001] in <62f761e6ab1445a38cdcb4ac36512695>:0
    at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <df7127ba07dc446d9f5831a0ec7b1d63>:0
    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <df7127ba07dc446d9f5831a0ec7b1d63>:0
    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <df7127ba07dc446d9f5831a0ec7b1d63>:0
    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <df7127ba07dc446d9f5831a0ec7b1d63>:0
    at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <df7127ba07dc446d9f5831a0ec7b1d63>:0
    UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    UnityEngine.Logger:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs) (at /Users/builduser/buildslave/unity/build/Runtime/Export/UnhandledExceptionHandler.bindings.cs:47)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.