Issue
I have used Android NDK for years, however, recently, I saw the message below when I built CPPs using ndk-build(ndk version 15)
Android NDK: android-9 is unsupported. Using minimum supported version android-14. Android NDK: WARNING: APP_PLATFORM android-14 is higher than android:minSdkVersion 9
Why does NDK stop supporting Android levels(3-13) lower than android-14?
I tried to find out why at NDK guides, https://developer.android.com/ndk/guides/stable_apis.html although I still have no idea. It seems NDK still supports higher than or equal to level 3.
I also guessed that one of flags or features I need in c++ may cause this. However, I could not even find any clue so far.
LOCAL_CPP_FEATURES := rtti exceptions
APP_CPPFLAGS += -std=c++11
APP_STL := gnustl_static
Solution
Don't update NDK version 15 if your apps should run on android-9
According to NDK Revision History (https://developer.android.com/ndk/downloads/revision_history.html),
Android 2.3 (android-9) is no longer supported. The minimum API level target in the NDK is now Android 4.0 (android-9). If your APP_PLATFORM is set lower than android-14, android-14 is used instead.
Answered By - MM S
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.