'Unable to get mutable Windows environment variable map

Uanable to run app after building successfully. First I got this error "Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details". Then when I stacktrace using terminal it shows this "Unable to get mutable Windows environment variable map"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source