I am trying to better understand how api level selection works when using ndk-build.
I know that I can explicitly set APP_PLATFORM in Application.mk, and otherwise ndk-build will target the api specified in the manifest using android:minSdkVersion , but what if my application manifest has like android:minSdkVersion , so and android:targetSdkVersion , and is it higher than minSdkVersion?
Will ndk-build target targetSdkVersion ? And how can I check this?
In case it targets a higher level of api, I believe that I can build using the native apis available only for this level, but if I ran the application on a device with a lower level of api, it would have to fail. so in this case I have to do some api level check, is this correct?
source share