You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Targetting a higher SDK version should only change the uses-sdk tag in the manifest, but setting it to say 31 to gain access to the latest features accessible from Java APIs, this happens:
targetSdkVersion: Android uses this to understand what SDK level your app has been tested on (the "target"), and makes sure to apply certain compatibility when running on newer platforms;
compileSdkVersion: Defines what SDK to compile against, but this is not used in the NDK;
minSdkVersion: What the NDK uses to select a compiler, according to https://developer.android.com/ndk/guides/sdk-versions. Afaik this means no newer APIs can be used, not even conditionally (because of dynamic linking).
In other words, it's wrong for cargo-apk to use target_sdk_version to fill in that version in the compiler path.
Targetting a higher SDK version should only change the uses-sdk tag in the manifest, but setting it to say 31 to gain access to the latest features accessible from Java APIs, this happens:
To be more clear, the below causes the above, but should actually work, even with an older NDK:
The text was updated successfully, but these errors were encountered: