2

只需下载 Cardboard 演示。构建到 Android 设备。启动它并获取崩溃日志。有人知道这个问题吗?

谢谢。

01-24 15:24:12.468    7271-7271/? E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.Error: FATAL EXCEPTION [main]
Unity version     : 4.6.0b20
Device model      : Xiaomi HM 1SW
Device fingerprint: Xiaomi/armani/armani:4.3/JLS36C/JHCMIBH45.0:user/release-keys
Caused by: java.lang.VerifyError: com/google/vrtoolkit/cardboard/CardboardDeviceParams
        at com.google.vrtoolkit.cardboard.HeadMountedDisplayManager.createCardboardDeviceParams(HeadMountedDisplayManager.java:214)
        at com.google.vrtoolkit.cardboard.HeadMountedDisplayManager.<init>(HeadMountedDisplayManager.java:54)
        at com.google.vrtoolkit.cardboard.CardboardView.init(CardboardView.java:768)
        at com.google.vrtoolkit.cardboard.CardboardView.<init>(CardboardView.java:263)
        at com.google.vrtoolkit.cardboard.plugins.unity.UnityCardboardActivity.onCreate(UnityCardboardActivity.java:184)
        at android.app.Activity.performCreate(Activity.java:5135)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2182)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2268)
        at android.app.ActivityThread.access$600(ActivityThread.java:148)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1263)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:137)
        at android.app.ActivityThread.main(ActivityThread.java:5162)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:525)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572)
        at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171)
        at dalvik.system.NativeStart.main(Native Method)
4

1 回答 1

2

您需要添加 libprotobuf-java-2.3-nano.jar。它在带有 cardboard.jar 的 \cardboard-java-master\CardboardSample\libs 中为我修复了它。

于 2015-01-30T16:39:35.607 回答