Description

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'."

Steps to Reproduce
  1. Create new Blueprint Project
  2. Enable GoogleVR and restart
  3. Create Keystore file [Link Removed] 
  4. Adjust Settings -> Android, with MinSDKVersion=19, TargetSDKVersion=26
  5. Adjust Settings -> Packaging -> Enable "For Distribution" 
  6. Package for Android ASTC (Default, Using Gradle)

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"

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-65531 in the post.

2
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.21
Target Fix4.21
Fix Commit4529512
Main Commit4551290
Release Commit4529512
CreatedOct 19, 2018
ResolvedNov 2, 2018
UpdatedSep 16, 2019