I recently upgraded my Android Studio from 3.0 to 3.1. In 3.0, I used to set proxy configuration in gradle.properties(Global properties) file, which includes setting systemProp.https.proxyPassword among others. However, I am unable to set this variable in 3.1. It seems like a design decision to prevent writing user password in an user-accessible file. However, how to go about setting the same?
Currently, whenever I set systemProp.https.proxyPassword, it gets overwritten with blank field next time I open Android Studio. And even after setting this variable again in gradle.properties (with global scope), I am unable to do git pull/push operations. It returns the following error:
Update canceled
Fetch failed: unable to access 'https://github.com/user_name/repo_name.git/': Received HTTP code 407 from proxy after CONNECT
gradle.properties
? if not did you try to set your proxy directly into Android Studio ? (Settings...>Appearance & behavior > System Settings > Http Proxy
) – xiaomi