Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All packages are not available for download error in android

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?

like image 471
Smiley smile Avatar asked Aug 02 '16 07:08

Smiley smile


People also ask

Why there is error in parsing the package in Android?

Why there is Error in Parsing the Package? There could be many reasons for the error in parsing package. Few of the main causes are listed below. The app is not made compatible with your version of Android. The app is Moded or Manifested thus not executable. The app is not downloaded properly or completely.

Why can’t I install the APK file?

If some of the critical assets and codes are missing from the APK then you may not be able to install the APK File. It is better to download the APK from any other source or try installing an older version of the app. Google Play Protect is Google’s built-in malware protection for Android.

Will package visibility changes in Android 11 affect my app?

These changes affect apps only if they target Android 11. For more information on these changes, view the guides about package visibility on Android. For more information about the package visibility changes in Android 11, view the following materials:

What is an Android Package data file?

It is the package data file consisting of strings of information executable by the software. The Android OS uses these data strings to run and install the apk file. Sometimes due to some issues with the build or due to manipulation of the file error occurs in-app installation. Why there is an Error in Parsing the Package?


3 Answers

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.

like image 85
muthuraj Avatar answered Sep 19 '22 21:09

muthuraj


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

like image 33
Linh Avatar answered Sep 19 '22 21:09

Linh


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.

like image 37
marsden madoka Avatar answered Sep 19 '22 21:09

marsden madoka