Sdkmanager in cmd throws IO exception

Viewed 767

I've tried using sdkmanager from command line with the following command: "sdkmanager --nohttps --verbose" but it gives me the following exception:

Warning: IO exception while downloading manifest java.io.FileNotFoundException: https://dl.google.com/android/repository/sys-img/android-desktop/sys-img2-3.xml at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1896) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:246) at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openCachedUrl(DownloadCache.java:355) at com.android.sdklib.repository.legacy.LegacyDownloader.downloadAndStream(LegacyDownloader.java:65) at com.android.repository.impl.manager.RemoteRepoLoaderImpl.lambda$fetchPackages$0(RemoteRepoLoaderImpl.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Blockquote

I've tried with the --nohttps option but it didn't work. I installed sdk manager in android studio and the version of sdk is 6.0 .

Update: I found in the Android Studio a package that can't be downloaded from their repository in the "Update Sites" tab from the SDK manager. Here is a SS with the SDK manager

1 Answers
Related