google vr plugin in old 4.18 vrsion can’t work at 26 target api. 26 level - minimum for uploading app to google play… In newest version of google vr plugin this was fixed, but the app crashes immediately on startup if smartphone don’t support daydream vr. This happens even if the application is configured only for cardboard VR.
I used the solution that was offered here (https://github.com/googlevr-unreal/UnrealEngine/issues/38). This worked, but only on version of 4.20 (I found the “if” block at line 160 - not at 198). But I need the engine version not lower 4.21. On version 4.21, I could not apply this fix… today I decided to try to replace googleVR folder with the engine version 4.21 folder from the old version 4.20, which I managed to fix it. And so I got 4.21 version of the engine with a working plugin from version 4.20! I did not have to rebuild the engine - I just immediately compiled the game and it worked! Maybe this fix work with version 4.22 as well…
Steps:
- download 4.20.2 branch googleVR from here (https://github.com/googlevr-unreal/UnrealEngine/releases)
- comment out a few lines as indicated here (https://github.com/googlevr-unreal/UnrealEngine/issues/38)
- build the engine
- download 4.21 Unreal Engine source code
- apply step “2” to 4.21 engine
- build the engine
- replace google vr folder of ue 4.21 by google vr folder from ue 4.20
- run 4.21 engine and compile the game
(sorry, i bad speak english - I’m still learning this language)