How to support 64-bit VR APP

How to configure

You can set your VR app to support a 64-bit build after Wave SDK 3.0.104 by modifying the build.gradle. You can:

  • build 32-bit apk only
  • build 64-bit apk only
  • build 32-bit and 64 bit in your device apk

When a build supports 32-bit and 64-bit on your APK, this means that the APK will run as 64-bit when installed on a 64-bit device and as 32-bit when installed on a 32-bit device. See the example below to learn how to modify your VR app to support 64-bit and/or 32-bit.

Focus on the ndk setting:

android {
    defaultConfig {
        ndk {
            abiFilters 'armeabi-v7a'              // Target only support 32-bit
            abiFilters 'arm64-v8a'                // Target only support 64-bit
            abiFilters 'armeabi-v7a', 'arm64-v8a' // Target support 32-bit and 64-bit

By default, ndk targets all non-deprecated ABIs. To target a single ABI, set APP_ABI in your file.

APP_ABI := armeabi-v7a            # Target only support 32-bit
APP_ABI := arm64-v8a              # Target only support 64-bit
APP_ABI := armeabi-v7a arm64-v8a  # Target support 32-bit and 64-bit.