I am trying to install the Android SDK and I get the following error in the SDK Manager Logs -
Fetching https://dl-ssl.google.com/android/repository/addons_
I have faced the sam problem in Windows. Then it worked for me after doing the following steps:
I choose the "Force https://... sources to be fetched using http://..." option and restarted the "SDK Manager", but it still didn't work. Then I right-clicked on the "Android SDK Tools" --> "SDK Manager" and choose "Run as Administrator". After which, it started to download the packages. I'm on Windows 10.
It is very likely that you are getting this when you are within a corporate network and your corporate is using some sort of Browser proxy.
If that is the case and you are using VPN software to get on the corporate network, then disconnect from the VPN to allow your machine to be on the Internet "directly".
I solved my problem in this way: First open the date and time settings of your computer and second: update it to the current date and time. Thats all.
There is a package ca-certificates-java
.
When using OpenJDK, it is installed automatically.
When using the Oracle's JDK with WebUpd8 PPA (Ubuntu), it is not.
As a workaround, I enabled the "Force https://... sources to be fetched using http://..." setting in the SDK Manager Tools > Options menu.
If you use Android Studio instead of the standalone SDK Manager, Choose "SDK Update Sites" in the "Android SDK" settings and click the checkbox in the lower part of the screen.
That seems to help. I suspect it is a server side problem, but I'm not sure about that.
Edit: Please note that using http instead of https is not really the best idea! In the worst case, a man-in-the-middle attack could inject malicious code into your Android SDK libraries that ends up in your APK. That's why it's called a workaround :)