-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add new target sdk page (#328)
* add new target sdk page * remove extra header * fix a typo and rearrange the doc a bit
- Loading branch information
1 parent
564eecf
commit b7bb532
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Setting Android Target SDK | ||
sidebar_label: Setting Target SDK | ||
description: Setting Android Target SDK | ||
slug: /android/setting-target-sdk | ||
--- | ||
|
||
All Android applications must specify a target SDK version, or the version of Android that the application is designed to run on. Each year, Google releases updates to the Android operating system and subsequently bumps the version number that applications are required to target. Typically, [this date is August 31st](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en) of each year. Because of this, it is important to keep your application up to date with the latest version of Android. In a Capacitor application, this is done by specifying your target SDK in the `/android/variables.gradle` file. | ||
|
||
```groovy | ||
targetSdkVersion = 34 | ||
``` | ||
|
||
## Capacitor Android Requirements | ||
|
||
In Capacitor, the Android target SDK version is strongly tied to the major version of Capacitor. This means that while you could change the target SDK to a higher version and rebuild your application, there's a very strong likelihood that your application will experience issues not otherwise present. The Capacitor team releases a new major version of Capacitor every year that includes support for the new target SDK version to ensure that applications remain compliant with Google's requirements. For this reason, it is important to keep your application up to date with the latest major version of Capacitor. | ||
|
||
## Android Target SDK Matrix | ||
|
||
The following table shows the target SDK versions that are supported by Capacitor Android. | ||
|
||
| Capacitor Android | Target SDK Version | | ||
| ----------------- | ------------------ | | ||
| 6.x | 34 | | ||
| 5.x | 33 | | ||
| 4.x | 32 | | ||
| 3.x | 30 | | ||
| 2.x | 29 | | ||
| 1.x | 28 | | ||
|
||
## Custom Target SDK Versions | ||
|
||
Capacitor Android does not support custom target SDK versions. Each version of Capacitor Android requires a specific target SDK version and support is only provided for that matching version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters