How do I target new API level requirement for app I want to publish it?

Anonymous
Not applicable

How do I target new API level requirement for app I want to publish it?

Lint found fatal errors while assembling a release target.

Fix the issues identified by lint, or create a baseline to see only new errors.
To create a baseline, run `gradlew updateLintBaseline` after adding the following to the module's build.gradle file:
```
android {
lint {
baseline = file("lint-baseline.xml")
}
}
```
For more details, see https://developer.android.com/studio/write/lint#snapshot

C:\Users\lferg\AndroidStudioProjects\simple-web-browser-android\app\build.gradle:11: Error: Google Play requires that apps target API level 33 or higher. [ExpiredTargetSdkVersion]
targetSdkVersion 29
~~~~~~~~~~~~~~~~~~~

Explanation for issues of type "ExpiredTargetSdkVersion":
Configuring your app to target a recent API level ensures that users
benefit from significant security and performance improvements, while still
allowing your app to run on older Android versions (down to the
minSdkVersion).

To update your targetSdkVersion, follow the steps from "Meeting Google Play
requirements for target API level",
https://developer.android.com/distribute/best-practices/develop/target-sdk.
html

https://support.google.com/googleplay/android-developer/answer/113469#targetsdk
https://developer.android.com/distribute/best-practices/develop/target-sdk.html

1 errors, 0 warnings

Screenshot (97).pngScreenshot (98).pngScreenshot (99).png

1 REPLY 1

jeremy
Level 2.3: Gingerbread

Hello, search for targetSdkVersion in your files and you should be able to change it to reflect the targetSdkVersion you want to.