Download

GoogleVR - Crash opening application on device 4.25.4

Can someone help me out with this error? I know GoogleVR is deprecated, but I also can’t find a nice alternative for Android and Unreal (hints are welcome :wink: ).


2020-11-13 21:02:48.467 18746-18746/com.testtest.DemoGoogleVr E/AndroidRuntime: FATAL EXCEPTION: MainThread-UE4
Process: com.testtest.DemoGoogleVr, PID: 18746
java.lang.NoSuchFieldError: No static field ui_settings_button_holder of type I in class Lcom/google/vr/cardboard/R$id; or its superclasses (declaration of 'com.google.vr.cardboard.R$id' appears in /data/app/com.testtest.DemoGoogleVr-pMAsyDvgFuhX6C9LRf4C0g==/base.apk!classes2.dex)
at com.google.vr.cardboard.UiLayer.inflateViewsWithLayoutId(SourceFile:26)
at com.google.vr.cardboard.UiLayer.<init>(SourceFile:12)
at com.google.vr.ndk.base.GvrUiLayoutImpl.<init>(SourceFile:8)
at com.google.vr.ndk.base.GvrUiLayoutImpl.<init>(SourceFile:1)
at com.google.vr.ndk.base.GvrLayoutImpl.init(SourceFile:27)
at com.google.vr.ndk.base.GvrLayoutImpl.<init>(SourceFile:13)
at com.google.vr.ndk.base.GvrLayoutImpl.<init>(SourceFile:1)
at com.google.vr.ndk.base.GvrLayoutFactory.createFromCurrentPackage(SourceFile:10)
at com.google.vr.ndk.base.GvrLayoutFactory.create(SourceFile:6)
at com.google.vr.ndk.base.GvrLayout.init(SourceFile:23)
at com.google.vr.ndk.base.GvrLayout.<init>(SourceFile:5)
at com.epicgames.ue4.GameActivity.onCreate(GameActivity.java:3220)
at android.app.Activity.performCreate(Activity.java:7955)
at android.app.Activity.performCreate(Activity.java:7944)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3531)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3703)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2216)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
2020-11-13 21:02:48.518 18746-18746/com.testtest.DemoGoogleVr I/Process: Sending signal. PID: 18746 SIG: 9

.

Hi!

The issue is that some native Android resources needed by the GoogleVR plugin for Android are not packaged within your app on the device. As the GoogleVR plugin is deprecated, maybe the problem is elsewhere, but you could try - from the Project Launcher - to set “Data Build” to “By the book” (this should cook and package all the needed files, maybe this solves your issue):

buBwJU7.png

As a side note, if you’re still interested in developing for Google Cardboard, we released a plugin in the Marketplace that integrates the new Google Cardboard SDK supporting both iOS and Android: Cardboard VR (www.unrealengine.com/marketplace/cardboard-vr).