# Using the Google VR SDK on mutiple architectures.
By default, the Google VR 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 Google VR 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/sdk-simplepanowidget** demo.
1. Build the standard existing **samples/sdk-simplepanowidget** demo via
Android Studio or `./gradlew :samples-sdk-simplepanowidget:build`. Examine
the contents of the resulting application by extracting the APK or using
`unzip -l
samples/sdk-simplepanowidget/build/outputs/apk/samples-sdk-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.
1. Add other architures to the application. For **sdk-simplepanowidget**, this
is done by editing the **samples/sdk-simplepanowidget/build.gradle** file
and uncommenting the **sourceSets** section which configures the build to
include the contents of **sdk-simplepanowidget/jniLibs/** in the final APK.
Create this **jniLibs** directory and copy the contents of the appropriate
folder in the **libraries/native** directories to this **jniLibs**
directory. For example, adding support for x86 devices to
**sdk-simplepanowidget**, would require copying **x86/libpanorenderer.so**
to **sdk-simplepanowidget/jniLibs/x86/libpanorenderer.so**.
1. Once the required native libraries are copied, rebuild the app in Android
Studio or via `./gradlew clean` and `./gradlew
:samples-sdk-simplepanowidget:build`. Examining the new APK will now show an
additional native library at **lib/x86/libpanorenderer.so**.
1. If you do not need the default armeabi-v7a library, it can be removed using
a **packagingOptions** step in the appropriate **build.gradle** file.
Uncommenting this section in **samples/sdk-simplepanowidget/build.gradle**
and rebuilding the app will remove **lib/armeabi-v7a/libpanorenderer.so**
from the APK.
没有合适的资源?快使用搜索试试~ 我知道了~
android VR SDK libraries库文件 simples是四个demo
共155个文件
xml:26个
gradle:21个
so:20个
5星 · 超过95%的资源 需积分: 20 37 下载量 185 浏览量
2016-09-06
20:34:35
上传
评论
收藏 24.74MB ZIP 举报
温馨提示
android VR SDK libraries库文件 simples是四个demo
资源推荐
资源详情
资源评论
收起资源包目录
android VR SDK libraries库文件 simples是四个demo (155个子文件)
videowidget.aar 1023KB
panowidget.aar 630KB
base.aar 583KB
audio.aar 358KB
common.aar 357KB
common.aar 357KB
common_library.aar 357KB
common.aar 357KB
commonwidget.aar 30KB
controller.aar 9KB
controller_emulator.apk 2.93MB
gradlew.bat 2KB
gradlew.bat 2KB
gradlew.bat 2KB
ground_texture64x64.bin 12KB
paint_texture64x64.bin 12KB
demoapp.cc 20KB
treasure_hunt_renderer.cc 19KB
utils.cc 8KB
treasure_hunt_jni.cc 3KB
app_jni.cc 2KB
.gitignore 157B
build.gradle 1KB
settings.gradle 1KB
build.gradle 1KB
build.gradle 1KB
build.gradle 1005B
build.gradle 996B
build.gradle 991B
build.gradle 511B
build.gradle 511B
build.gradle 498B
build.gradle 83B
build.gradle 83B
build.gradle 81B
build.gradle 81B
build.gradle 78B
build.gradle 78B
build.gradle 77B
build.gradle 76B
build.gradle 75B
settings.gradle 43B
settings.gradle 43B
gradlew 5KB
gradlew 5KB
gradlew 5KB
gvr.h 52KB
gvr.h 52KB
gvr.h 52KB
gvr_audio.h 30KB
gvr_audio.h 30KB
gvr_audio.h 30KB
gvr_controller.h 22KB
gvr_controller.h 22KB
gvr_controller.h 22KB
gvr_types.h 16KB
gvr_types.h 16KB
gvr_types.h 16KB
demoapp.h 10KB
world_layout_data.h 9KB
treasure_hunt_renderer.h 5KB
utils.h 4KB
app_jni.h 2KB
gradle-wrapper.jar 52KB
gradle-wrapper.jar 52KB
gradle-wrapper.jar 52KB
TreasureHuntActivity.java 21KB
SimpleVrVideoActivity.java 12KB
OrientationView.java 11KB
WorldLayoutData.java 8KB
SimpleVrPanoramaActivity.java 8KB
MainActivity.java 6KB
ControllerClientActivity.java 6KB
MainActivity.java 6KB
andes.jpg 1.57MB
testRoom1_2kStereo.jpg 463KB
testRoom1_2kMono.jpg 301KB
LICENSE 10KB
README.md 3KB
README.md 1KB
README.md 199B
congo.mp4 2.8MB
testRoom1_1080Stereo.mp4 516KB
testRoom1_1920Mono.mp4 456KB
NOTICE 366KB
vr_icon.png 40KB
vr_icon_background.png 36KB
ic_launcher.png 19KB
ic_launcher.png 14KB
vr_icon.png 13KB
vr_icon_background.png 10KB
ic_launcher.png 9KB
ic_launcher.png 8KB
ic_launcher.png 8KB
ic_launcher.png 5KB
ic_launcher.png 5KB
ic_launcher.png 5KB
ic_launcher.png 3KB
ic_launcher.png 3KB
ic_launcher.png 2KB
共 155 条
- 1
- 2
资源评论
- duxiufang2017-01-16不错,可以用
nergal_
- 粉丝: 4
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功