All packages are not available for download error in android

28,770

Solution 1

Open SDK Manager -> SDK Platform
Check on Show Package Details and Sources for Android ... then download enter image description here

Solution 2

The popup error is not related to the exception you got on your application. Api 24 source code is not fully available. Hence you got the error. Change complieSdkVersion and targetSdkVersion to 23 and sync the gradle.

Solution 3

I just closed my IDE then restarted my computer. When I opened the IDE the error was no more.

Make sure you have good internet connection, as the error might be caused by a lack of internet connection preventing the IDE from reaching the site.

Share:
28,770
Smiley smile
Author by

Smiley smile

Updated on July 28, 2022

Comments

  • Smiley smile
    Smiley smile almost 2 years

    All packages are not available for download! The following packages are not available: - Package id sources;android-24

    Am trying getting data from database by using of web services, when am running the application getting an above shown error.

    How can I resolve this issue in the android studio?