我正在使用新库来获取Google的vr360图片
当我在三星Galaxy s6(6.0)上运行应用程序时,我遇到了问题。但是当我在其他设备上运行该应用程序时,Nexus 4(5. +)的运行状况良好。
我尝试在S6上运行实验室应用程序并且完美运行.. 演示网址:https://codelabs.developers.google.com/codelabs/vr_view_app_101/index.html?index=..%2F..%2Findex#0
我的错误:
android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.google.vr.sdk.widgets.pano.VrPanoramaView
我的Xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.vr.sdk.widgets.pano.VrPanoramaView
android:id="@+id/pano_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dip" />
</LinearLayout>
我的Gradle:
compile project(':gvr-android-sdk/libraries:common')
compile project(':gvr-android-sdk/libraries:commonwidget')
compile project(':gvr-android-sdk/libraries:panowidget')
和Settings.gradle
include ':gvr-android-sdk/libraries:audio'
include ':gvr-android-sdk/libraries:base'
include ':gvr-android-sdk/libraries:common'
include ':gvr-android-sdk/libraries:commonwidget'
include ':gvr-android-sdk/libraries:panowidget'
include ':gvr-android-sdk/libraries:videowidget'
答案 0 :(得分:1)
将以下abiFilters添加到项目的build.gradle文件中的buildTypes。
buildTypes {
release {
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86"
}
}}
答案 1 :(得分:-1)
替换它:编译项目(&#39;:gvr-android-sdk / libraries:panowidget&#39;)
到此:编译项目(&#39;:gvr-android-sdk / libraries:videowidget&#39;)