Skip to content

Most visited

Recently visited

navigation

Support for 64-bit x86

The Android NDK supports the x86_64 ABI. This ABI allows native code to run on Android-based devices using CPUs that support the 64-bit x86 instruction set.

Overview

Binaries targeting x86_64 will be built by default. If you have set APP_ABI in your Application.mk file, ensure that it is either set to "all" or includes "x86". For example:

APP_ABI := arm64-v8a x86_64
For more information on how to specify values for APP_ABI, see Application.mk.

The build system places libraries generated for the x86_64 ABI into $PROJECT/libs/x86_64/ on your host machine, where $PROJECT is the root directory of your project. It also embeds them in your APK, under /lib/x86_64/.

The Android package manager extracts these libraries when installing your APK on a compatible 64-bit, x86-powered device, placing them under your app's private data directory.

In the Google Play Store, the server filters applications so that a consumer sees only the native libraries that run on the CPU powering his or her device.

Standalone Toolchain

You can use the 64-bit x86 toolchain in standalone mode with the NDK. For more information about doing so, see Standalone Toolchain, under the "Advanced method" section.

Compatibility

The NDK provides native versions of Android APIs for 64-bit x86 machine code starting from Android 5.0 (Android API level 21). If your project files target an older API level, but include x86_64 as a targeted platform, the ndk-build automatically selects the right set of native platform headers and libraries for you.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)