As the document says about the android:targetSdkVersion
,
An integer designating the API Level that the application targets. If
not set, the default value equals that given to minSdkVersion. This
attribute informs the system that you have tested against the target
version and the system should not enable any compatibility behaviors
to maintain your app's forward-compatibility with the target version.
The application is still able to run on older versions (down to
minSdkVersion).
In anycase,targetSdkVersion
should always be greater than or equal to the minSdkVersion
, because in no way can your app run below minSdkVersion
. If you have put targetSdkVersion
less than the minSdkVersion
that means you are telling the android system that you have tested this app on the targetSdkVersion
, but this is not possible (since your app can run on devices only as low as minSdkVersion
).
Hence by contradiction targetSdkVersion
should always be greater than equal to the minSdkVersion
.