关于SDK版本设置
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
F:\Android_Studio_Projects\QFLIStudio+_2024-source\test\build.gradle:12: Error: Google Play requires that apps target API level 33 or higher. [ExpiredTargetSdkVersion]
targetSdk 23
~~~~~~~~~~~~
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
android {
lintOptions {
abortOnError false // 忽略所有 Lint 错误
}
}
扫描二维码,在手机上阅读
收藏