Try: Run with --stacktrace option to get the stack trace. I put the /bin in there. * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace. * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace. Ah, so I basically added gradle to the environmental variable called "Path", it has a list with directories. You should not be doing this. * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --info or --debug option to get more log output. Environment variable in settings.gradle not working with Android … The gradle executable is usually installed here (when installed by Android-Studio): **.gradle\wrapper\dists\gradle--bins\\gradle- \bin** , refers to the user directory, eg. C:Users/myuser , refers to installed gradle version number like 4.4 or 4.4.1 etc Android Studio has a limitation that all of its modules need to be located underneath the project root. Unable to get mutable Windows environment variable map But avoid …. Run with --scan to get full insights. Run with --scan to get full insights. Get more help at https://help.gradle.org. Build failing with "Unable to get mutable windows environment … Unable to set environmental variables for Gradle build - JetBrains * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace.