Android API Levels
This is an overview of all Android versions and their corresponding identifiers for Android developers. Anyone is welcome to open an issue or pull request. Happy developing!
Definitions
Gradle files
| Kotlin variable | Groovy variable | Definition |
|---|---|---|
| minSdk | minSdkVersion | The minimum SDK version your app will support, defined in build.gradle . For example, if your minSdk is 26, this SDK version corresponse to API Level 26 and Android 8, so your app will only run on devices with Android 8 or higher. |
| targetSdk | targetSdkVersion | The SDK version that your app targets, defined in build.gradle . This should always be the same as compileSdk . |
| compileSdk | compileSdkVersion | The SDK version that your app compiles against, defined in build.gradle . Android Studio uses this SDK version to build your AABs and APKs. This should always be the same as targetSdk . |
Code files
| Variable | Definition |
|---|---|
| Build.VERSION.SDK_INT | The SDK version of the Android OS currently running on the user’s device. For example, on a device running Android 11, this value will be 30 (aka Build.VERSION_CODES.R ), even if the target and compile SDK of the app is different. |
Footnotes
- Cumulative usage distribution figures were last updated on November 14, 2023 using data from Statcounter GlobalStats and this script. These figures may have changed significantly since the last update. You may update the figures yourself with a pull request. ↩
- The codenames for Android 10 and above in the table are the internal codenames. Beginning with Android 10, Google dropped the usage of codenames publicly. ↩
- Android 4.4W is the first Android release for Android Wear. ↩
- The years represent the year of first stable release of each version. The release dates are from android.os.Build.VERSION_CODES including later versions’ years from the Official Android blog (12, 12L, 13, 14) ↩
See also
- Build.VERSION_CODES official reference
- Codenames, Tags, and Build Numbers
Ошибка при обновлении Android SDK 29
захожу в Unity -> в player settings -> меняю галочки на API 29 . При сборке проекта выдает сообщение на экране:
Обновить Android SDK 29?
нажимаю обновить, затем получаю ошибку:
Попробуйте установить вручную, прописав путь к sdkmanager.bat
прописываю путь в командной строке:
C:\Program Files\Unity\Hub\Editor\2020.1.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin>sdkmanager.bat "platforms;android-29"
Потом соглашаюсь с лицензией. И дальше выходит вот такая ошибка:
Accept? (y/N): y Warning: Failed to read or create install properties file. [=== ] 10% Installing Android SDK Platform 29 C:\Program Files\Unity\Hub\Editor\2020.1.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin>
Кто сталкивался с такой проблемой — помогите, пожалуйста
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Docker for Android SDK 29 with preinstalled build tools and emulator image
docker-android-sdk/android-29
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch branches/tags
Branches Tags
Could not load branches
Nothing to show
Could not load tags
Nothing to show
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Cancel Create
- Local
- Codespaces
HTTPS GitHub CLI
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Latest commit message
Commit time
README.md
Docker for Android SDK 29
Docker for Android SDK 29 with preinstalled build tools and emulator image
Installed Packages
# sdkmanager --list Path | Version | Description | Location ------- | ------- | ------- | ------- build-tools;30.0.2 | 30.0.2 | Android SDK Build-Tools 30.0.2 | build-tools/30.0.2/ cmdline-tools;latest | 2.1 | Android SDK Command-line Tools (latest) | cmdline-tools/latest/ emulator | 30.1.5 | Android Emulator | emulator/ patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/ platform-tools | 30.0.4 | Android SDK Platform-Tools | platform-tools/ platforms;android-29 | 5 | Android SDK Platform 29 | platforms/android-29/ system-images;android-29;google_apis;x86_64 | 11 | Google APIs Intel x86 Atom_64 System Image | system-images/android-29/google_apis/x86_64/
Usage
$ docker run -it --rm --device /dev/kvm androidsdk/android-29:latest bash # check installed packages $ sdkmanager --list # create and run emulator $ avdmanager create avd -n first_avd --abi google_apis/x86_64 -k "system-images;android-29;google_apis;x86_64" $ emulator -avd first_avd -no-window -no-audio & $ adb devices # You can also run other Android platform tools, which are all added to the PATH environment variable
# check installed packages $ docker run -it --rm androidsdk/android-29:latest sdkmanager --list # list existing emulators $ docker run -it --rm androidsdk/android-29:latest avdmanager list avd # You can also run other Android platform tools, which are all added to the PATH environment variable
About
Docker for Android SDK 29 with preinstalled build tools and emulator image
Android 10 (API уровня 29)
С недавнего времени при загрузке обновлении приложений получаю:
Целевой уровень API для вашего приложения – 28. Чтобы обеспечить необходимую производительность и безопасность, целевой уровень API должен быть не ниже 29.
С августа 2020 года целевая версия новых приложений должна быть не менее Android 10 (API уровня 29).
пробовал принудительно в AndroidManifest.template.xml ставить targetSdkVersion 29, приложение вылетает при старте.
10.4. вообще корявое г. Что еще можно сделать?
Изменено 3 сентября, 2020 пользователем IgorK11
