I have a crazy issue with Android Studio proxy.
So far, I was using Android Studio 2.3.1 and the proxy was working fine (I have to use a proxy with authentication). In Android Studio "Settings" menu, there is a "Check connection" button. It says that the connection is successful.
Yesterday, I have moved to Android Studio 3.1.4. With this version, the proxy authentication always fails with error 407:
Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"
I have tried a lot of things without success. The most promising one was found here It says:
Change in Java 8 Update 111: Now, proxies requiring Basic authentication when setting up a tunnel for HTTPS will no longer succeed by default. If required, this authentication scheme can be reactivated by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to "" ( empty ) on the command line.
I have followed the advice and edited my net.properties file to remove the word "basic" at the end of 'jdk.http.auth.tunneling.disabledSchemes' but the issue is still there.
I have then moved back to Android Studio 2.3.1 and I can see that the proxy is working. I'm wondering what's wrong with Android Studio 3.1.4 and I'm stuck :o(
By the way, I'm on Ubuntu 16.04 and I'm using Java8 from Oracle (/usr/lib/jvm/java-8-oracle)
Thanks for any advice.