Select target architectures in Android Studio NDK build


You may want to specify explicitly a list of target architectures on which your Android app should be build. To do this:

Open app/build.gradle

Find node android/defaultConfig

Add the following line or specify your own list of architectures:

ndk.abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
Rate this post:
Share this page:

See also how to:

How to find all Clang arguments that used to build native code in Android Studio
How to call your native functions in Android NDK application from Java
How to use JNIEnv::FindClass on Android and what you should know about it
How to open URL in web browser from Android NDK application with Java or native code
The most simple example how to show a message box on Android application