There is an issue with GoogleVR and Android SDK 26 that only occurs when packaging "For Distribution", possibly connected to the SDK 26 change regarding the UiLayer for VR mode. Packaging without Distribution mode runs as expected, produces the APK and launches correctly.
Packaging with Ant instead of Gradle results in a different error: UATHelper: Packaging (Android (ETC1)): [javac] Z:\src\com\epicgames\ue4\LocalNotificationReceiver.java:51: error: constructor Builder in class Builder cannot be applied to given types; UATHelper: Packaging (Android (ETC1)): [javac] NotificationCompat.Builder builder = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID)
Unable to test in 4.22 @ 4486869 "PackagingResults: Error: Couldn't find target rules file for target 'UnrealPak' in rules assembly 'AJ_GoogleVRTestModuleRules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."
Result: "UATHelper: Packaging (Android (ASTC)): Warning: com.google.vr.cardboard.UiLayer: can't find referenced field 'int ui_back_button_holder' in program class com.google.vr.cardboard.R$id
UATHelper: Packaging (Android (ASTC)): Warning: com.google.vr.cardboard.UiLayer: can't find referenced field 'int ui_settings_button_holder' in program class com.google.vr.cardboard.R$id"
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-65531 in the post.
2 |
Component | UE - Platform - Mobile |
---|---|
Affects Versions | 4.21 |
Target Fix | 4.21 |
Created | Oct 19, 2018 |
---|---|
Resolved | Nov 2, 2018 |
Updated | Sep 16, 2019 |