Nanfeng

Notes on software development, code, and curious ideas

Fix This App Was Built for an Older Version of Android by Updating targetSdkVersion

Android displayed an old-app compatibility warning:

Compatibility warning

The project defined targetSdkVersion through PROP_TARGET_SDK_VERSION. Update that shared value in gradle.properties rather than editing every generated Gradle file:

1
PROP_TARGET_SDK_VERSION=31
Target SDK property

Use the target API currently required by your distribution channel and verify behavior changes introduced between Android versions.

+