API compatibility mismatch: @RequiresApi(UPSIDE_DOWN_CAKE) vs minSdk = 33 #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
MainActivity.ktandNewRecordScreen.ktare annotated with:However:
app/build.gradle.ktssetsminSdk = 33(Android 13).Requirements: Android API 33+.Impact
No Android 14+ (API 34) specific APIs are actually required by
MainActivityorNewRecordScreen. Having@RequiresApi(34)onMainActivity.onCreateviolates theminSdk = 33contract and can cause warnings, lint failures, or unexpected behavior on Android 13 devices.Suggested Fix
Remove the
@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)annotations fromMainActivity.ktandNewRecordScreen.kt.