Run with --info or --debug option to get more log output. Instead of environment variables, like myProperty, please use Gradle properties – they can be specified in the gradle.properties file, if not secret. Run with --info or --debug option to get more log output. Unable to get mutable Windows environment variable map Environment variable in settings.gradle not working with Android … Unable to get mutable Windows environment variable map * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace. If you get "command not found: gradle", you need to ensure that Gradle is properly added to your PATH. If you get something like: ERROR: JAVA_HOME is set to an invalid directory Please set the JAVA_HOME variable in your environment to match the location of your Java installation. FAILURE: Build failed with an exception. * What went wrong: Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace. For more vulnerable data or properties that may change when running tasks, you can set such properties using environment variables prefixed with ORG_GRADLE_PROJECT_, like ORG_GRADLE_PROJECT_myProperty. Android Studio doesn't read environment variables, so this approach won't work. Again, Unable to get mutable Windows environment … Exception is: net.rubygrapefruit.platform.NativeException: Unable to get mutable … gradlew assemble "Unable to get mutable Windows environment … Unable to get mutable Windows environment variable map * Try: Run with --stacktrace option to get the stack trace. $ ./gradlew wrapper --gradle-version 7.0.2 FAILURE: Build failed with an exception.