Sorry, do you pass your key / password to command line?
The first part of your license key before dash is the repository user name, the part after dash is the password. For example, if your key is 111111222222-abcdefabcdef, then the user name is 111111222222 and the password is abcdefabcdef.
Also, you may need to stop Gradle if you change its global gradle.properties. Run in command line:
Yes, I tried in command line and then I created the gradle.properties file with the credentials but it still didn’t work. And yes, I entered the correct credentials. Now it works but i think just because everything has already been downloaded by the studio.
Next time I will try gradlew --stop
Thanks!