After following the quickstart/pre-requisite for the Gear VR, it seems to build/package successfully, as well as install to phone.
As soon as you try and run it, this error crashes the app straight after ‘Please insert this device into Gear VR’ message, and actually inserting it (Immediatley if using Gear VR dev mode).
Have I missed something from the setup here?
Tested in 4.7.5, and Gear VR support works as advertised, same setup.
Debug output:
D/dalvikvm(13169): Added shared lib /data/app-lib/com.YourCompany.GearVRTest-1/libUE4.so 0x42210850
D/UE4 (13169): In the JNI_OnLoad function
W/System.err(13169): java.lang.NoSuchMethodError: no method with name='AndroidThunkJava_IsGearVRApplication' signature='()Z' in class Lcom/epicgames/ue4/GameActivity;
W/System.err(13169): at java.lang.Runtime.nativeLoad(Native Method)
W/System.err(13169): at java.lang.Runtime.doLoad(Runtime.java:421)
W/System.err(13169): at java.lang.Runtime.loadLibrary(Runtime.java:362)
W/System.err(13169): at java.lang.System.loadLibrary(System.java:526)
W/System.err(13169): at com.epicgames.ue4.GameActivity.<clinit>(GameActivity.java:1131)
W/System.err(13169): at java.lang.Class.newInstanceImpl(Native Method)
W/System.err(13169): at java.lang.Class.newInstance(Class.java:1208)
W/System.err(13169): at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
W/System.err(13169): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2399)
W/System.err(13169): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2599)
W/System.err(13169): at android.app.ActivityThread.access$900(ActivityThread.java:174)
W/System.err(13169): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
W/System.err(13169): at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err(13169): at android.os.Looper.loop(Looper.java:146)
W/System.err(13169): at android.app.ActivityThread.main(ActivityThread.java:5748)
W/System.err(13169): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(13169): at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err(13169): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
W/System.err(13169): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
W/System.err(13169): at dalvik.system.NativeStart.main(Native Method)
D/UE4 (13169): Assertion failed: Method != 0 [File:D:\UE4\Engine\Source\Runtime\\Private\Android\AndroidJNI.cpp] [Line: 85]
D/UE4 (13169): Failed to find Method
F/libc (13169): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 13169 (pany.GearVRTest)