How do I target new API level requirement for app I want to publish it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 08:02 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 12:12 AM
Hello, search for targetSdkVersion in your files and you should be able to change it to reflect the targetSdkVersion you want to.