Gradle fails on cordova / quasar

I am trying to run cordova app from Quasar framework. Im getting this error. Dont know why. I followed this guide:

I have set environment variables to:

ANDROID_SDK_ROOT  C:\Users\myuser\AppData\Local\Android\Sdk
JAVA_HOME         C:\Program Files\Java\jdk-
Path              C:\Gradle\gradle-4.10.3\bin; %ANDROID_SDK_ROOT%\tools;%ANDROID_SDK_ROOT%\platform-tools; C:\Program Files\Java\jdk-\bin

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\myuser\AppData\Local\Android\Sdk (recommended
setting) ANDROID_HOME=undefined (DEPRECATED) Using Android SDK:

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. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at Command failed with exit code 1: C:\Gradle\gradle-4.10.3\bin\gradle.BAT -p
    wrapper -b

App • Command “cordova” failed with exit code: 1 App • Updated
Cordova config.xml

App • :warning: FAIL Cordova CLI has failed

How can I fix this?