By default, the Cardboard SDK targets the armeabi-v7a architecture and the .aar files in the libraries modules only have armeabi-v7a components. This is sufficient for targeting the majority of Android devices since these libraries can be used on both armeabi-v7a and arm64-v8a phones. Some x86 Android devices also support armeabi-v7a native code.
In certain cases, native components for other architectures are required. Alternative versions of the Cardboard SDK native libraries are included in this directory and can be included in your app in necessary. The following instructions explain how to include alternative architectures in the samples/simplepanowidget demo.
./gradlew :samples-simplepanowidget:build
. Examine the contents of the resulting application by extracting the APK or using unzip -l samples/simplepanowidget/build/outputs/apk/samples-simplepanowidget-debug.apk | grep lib.*so
. The basic sample will only show a single native library at lib/armeabi-v7a/libpanorenderer.so. For your own app, note all the architectures and libraries that your application includes../gradlew clean
and ./gradlew :samples-simplepanowidget:build
. Examining the new APK will now show an additional native library at lib/x86/libpanorenderer.so.