Unity 5.6.0b6 Beta - App crashing at start - Technical Preview recommended?

After creating a fresh Unity project with the Unity beta version 5.6.0b6 and adding Daydream + Cardboard to supported VR devices, as well as fixing some Manifest errors I was able to compile and build the project.
The APK can also be installed on the device (googel pixel XL and samsung galaxy s5).

The huge problem that occurs is when the app is actually started.
Before the Unity plash screen appears the app just crashes without any error message.

Is this an known issue? I tried the same with the technical preview Version of Unity and everything works fine.

Would you recommend using the technical preview instead of the current Unity beta?
I fear that eventually I’ll have to change quite a lot of deprecated code etc. when the final 5.6 version is out if I continue using the technical preview.

Thanks in advance!

Have you looked in Logcat to see if there is a crash stack there? Can yo please file a bug report and post the case ID here?

I had a closer look today and found the error that causes the crash.


AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.Iqi.Vr/com.google.unity.GoogleUnityActivity}: java.lang.ClassNotFoundException: Didn’t find class “com.google.unity.GoogleUnityActivity” on path: DexPathList[[zip file “/mnt/asec/com.Iqi.Vr-2/base.apk”],nativeLibraryDirectories=[/mnt/asec/com.Iqi.Vr-2/lib/arm, /mnt/asec/com.Iqi.Vr-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

I also found two other posts that mention the same problem:

https://forum.unity3d.com/threads/unity-5-6-b2-google-daydream-vr-app-keep-crashing.447495/

Although it seems to be possible to fix this issue by updating the Plugins/Android folder (for instance an incomplete lib folder), I can’t see why this problem occurs when using an up-to-date clean 5.6.0b6 version without the additional Unity Gvr unity package.

I will try to make another clean setup and if the problem is not fixed by then, I will submit a bug report.
I want to also note that I tried to install the google vr unity package as well as updating / deleting the old Package/Android folder. This did not solve the error.

Could you please delete Assets/Plugins/Android/AndroidManifest.xml? There was previously a code path in the compatibility script (now fixed) that copied over AndroidManifest-Cardboard.xml when the importing platform was PC, on the technical preview or 5.6.

I was able to reinstall the 5.6 Unity Beta as well as import the Google VR package without the AndroidManifest.xml file. In order to solve the Manifest merging issue, I had to set the Minimum API Level to 19 in the player settings.

Now the app can be built without errors and started on a Galaxy S7. In the next few days I am going to test it on the Pixel as well.

Thanks for the replies.