I want to create some content for the Quest 2. I made up a map and ran into issues when launching. At this point, I went and tried to do the same with the VRTemplateMap. I followed a few tutorials to get everything up and running correctly. I followed the documentation, and I am still getting the same errors.
Apparently, I cannot attach files so the log will be posted at the bottom after this post.
I have checked and rechecked the SDKs in android studio 4.0. I reinstalled everything from scratch. I tested it with unreal 5 same issues. Google is not giving me anything useful. I tried to get it working on a different machine only to get very different problems where it is not letting me accept the license. I have attempted to find the answer elsewhere but I am not sure what the correct questions are at this point.
Any help would be great. I am at a standstill and it feels like I have ran into a brick wall.
Running AutomationTool...
Parsing command line: -ScriptsForProject="C:/Users/Will/Documents/Unreal Projects/LoadQuest02/LoadQuest02.uproject" BuildCookRun -project="C:/Users/Will/Documents/Unreal Projects/LoadQuest02/LoadQuest02.uproject" -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -ue4exe="C:\Program Files\Epic Games\UE_4.27\Engine\Binaries\Win64\UE4Editor-Cmd.exe" -utf8output -platform=Android -targetplatform=Android -cookflavor=ASTC -ini:Game:[/Script/UnrealEd.ProjectPackagingSettings]:BlueprintNativizationMethod=Disabled -build -cookonthefly -nokill -map= -compressed -stage -deploy -cmdline=" -Messaging" -device=Android_ASTC@1WMHHB66291444 -addcmdline="-SessionId=44AE6BF64BBF02B312AF5ABC0A02112A -SessionOwner='Will' -SessionName='Quest_2 (1WMHHB66291444)' " -run
Setting up ProjectParams for C:\Users\Will\Documents\Unreal Projects\LoadQuest02\LoadQuest02.uproject
LoadQuest02.uproject requires a temporary target.cs to be generated (ResonanceAudio plugin is enabled)
********** BUILD COMMAND STARTED **********
Running: C:\Program Files\Epic Games\UE_4.27\Engine\Binaries\DotNET\UnrealBuildTool.exe LoadQuest02 Android Development -Project="C:\Users\Will\Documents\Unreal Projects\LoadQuest02\LoadQuest02.uproject" "C:\Users\Will\Documents\Unreal Projects\LoadQuest02\LoadQuest02.uproject" -NoUBTMakefiles -remoteini="C:\Users\Will\Documents\Unreal Projects\LoadQuest02" -skipdeploy -ini:Game:[/Script/UnrealEd.ProjectPackagingSettings]:BlueprintNativizationMethod=Disabled -Manifest="C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Build\Manifest.xml" -NoHotReload -log="C:\Users\Will\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\UBT-LoadQuest02-Android-Development.txt"
PLATFORM_ANDROID_NDK_VERSION = 210500
NDK toolchain: r21e, NDK version: 21, GccVersion: 4.9, ClangVersion: 9.0.9
Compiling Native 32-bit code with NDK API 'android-21'
Writing manifest to C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Build\Manifest.xml
Target is up to date
Total execution time: 3.46 seconds
Took 3.5280892s to run UnrealBuildTool.exe, ExitCode=0
********** BUILD COMMAND COMPLETED **********
********** COOK COMMAND STARTED **********
Running: C:\Program Files\Epic Games\UE_4.27\Engine\Binaries\Win64\UE4Editor.exe "C:\Users\Will\Documents\Unreal Projects\LoadQuest02\LoadQuest02.uproject" -run=cook -cookonthefly -unattended -CrashForUAT -log -abslog="C:\Users\Will\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Server.log" -SessionId=44AE6BF64BBF02B312AF5ABC0A02112A -SessionOwner="Will" -SessionName="Quest_2 (1WMHHB66291444)"
Waiting a few seconds for the server to start...
********** COOK COMMAND COMPLETED **********
********** STAGE COMMAND STARTED **********
Creating UE4CommandLine.txt
Creating Staging Manifest...
Cleaning Stage Directory: C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Saved\StagedBuilds\Android_ASTC
Copying NonUFSFiles to staging directory: C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Saved\StagedBuilds\Android_ASTC
Copying DebugFiles to staging directory: C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Saved\StagedBuilds\Android_ASTC
Running: C:\Users\Will\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 1WMHHB66291444 shell "echo $EXTERNAL_STORAGE"
Took 0.0384686s to run adb.exe, ExitCode=0
Running: C:\Users\Will\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 1WMHHB66291444 pull /sdcard/UE4Game/LoadQuest02/Manifest_UFSFiles_Android.txt "C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Saved\StagedBuilds\Android_ASTC\Manifest_UFSFiles_Android_1WMHHB66291444.txt"
Took 0.0320809s to run adb.exe, ExitCode=1
********** STAGE COMMAND COMPLETED **********
********** PACKAGE COMMAND STARTED **********
********** PACKAGE COMMAND COMPLETED **********
********** DEPLOY COMMAND STARTED **********
Running: C:\Users\Will\AppData\Local\Android\Sdk\platform-tools\adb.exe -s 1WMHHB66291444 shell getprop ro.product.cpu.abi
Took 0.0424577s to run adb.exe, ExitCode=0
AndroidPlugin: Plugins\Runtime\Oculus\OculusOpenXR\Source\OculusOpenXRHMD\OculusMobile_APL.xml
AndroidPlugin: Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\OnlineSubsystemGooglePlay_UPL.xml
AndroidPlugin: Plugins\Runtime\AndroidPermission\Source\AndroidPermission\AndroidPermission_APL.xml
AndroidPlugin: Plugins\Runtime\GoogleCloudMessaging\Source\GoogleCloudMessaging\GoogleCloudMessaging_UPL.xml
AndroidPlugin: Plugins\Runtime\GooglePAD\Source\GooglePAD\GooglePAD_APL.xml
AndroidPlugin: Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\OculusMobile_APL.xml
AndroidPlugin: Source\Runtime\Online\Voice\AndroidVoiceImpl_UPL.xml
AndroidPlugin: Source\ThirdParty\Oculus\LibOVRPlatform\LibOVRPlatform_APL.xml
AndroidPlugin: Source\ThirdParty\HWCPipe\HWCPipe_UPL.xml
AndroidPlugin: Source\ThirdParty\heapprofd\heapprofd_UPL.xml
AndroidPlugin: Source\ThirdParty\GoogleGameSDK\GoogleGameSDK_APL.xml
UPL: Engine\Plugins/Runtime/Oculus/OculusOpenXR/Source/OculusOpenXRHMD/OculusMobile_APL.xml
UPL: Engine\Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/OnlineSubsystemGooglePlay_UPL.xml
UPL: Engine\Plugins/Runtime/AndroidPermission/Source/AndroidPermission/AndroidPermission_APL.xml
UPL: Engine\Plugins/Runtime/GoogleCloudMessaging/Source/GoogleCloudMessaging/GoogleCloudMessaging_UPL.xml
UPL: Engine\Plugins/Runtime/GooglePAD/Source/GooglePAD/GooglePAD_APL.xml
UPL: Engine\Plugins/Runtime/Oculus/OculusVR/Source/OculusHMD/OculusMobile_APL.xml
UPL: Engine\Source/Runtime/Online/Voice/AndroidVoiceImpl_UPL.xml
UPL: Engine\Source/ThirdParty/Oculus/LibOVRPlatform/LibOVRPlatform_APL.xml
UPL: Engine\Source/ThirdParty/HWCPipe/HWCPipe_UPL.xml
UPL: Engine\Source/ThirdParty/heapprofd/heapprofd_UPL.xml
UPL: Engine\Source/ThirdParty/GoogleGameSDK/GoogleGameSDK_APL.xml
Using package name: 'com.WillDesign3d.LoadQuest02'
GotStoreVersion found v1. (bUseChangeListAsStoreVersion=False IsBuildMachine=False EngineChangeList=0)
Writing packageInfo pkgName:com.WillDesign3d.LoadQuest02 storeVersion:1 versionDisplayName:1.0 to C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Binaries\Android\packageInfo.txt
====10/12/2021 17:50:51====PREPARING TO MAKE APK=================================================================
bBuildForES31: true
bSupportsVulkan: true
Building Java with SDK API level 'android-29'
Building with Build Tools version '29.0.2'
==== Writing to shim file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Build\Android\src\com\epicgames\ue4\DownloadShim.java ====
==== Shim data file up to date so not writing. ====
==== Writing to template target file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Build\Android\src\com\WillDesign3d\LoadQuest02\AlarmReceiver.java ====
==== Template target file up to date so not writing. ====
==== Writing to template target file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Build\Android\src\com\WillDesign3d\LoadQuest02\DownloaderActivity.java ====
==== Template target file up to date so not writing. ====
==== Writing to template target file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Build\Android\src\com\WillDesign3d\LoadQuest02\OBBDownloaderService.java ====
==== Template target file up to date so not writing. ====
Cleaning up files based on template dir C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Build\Android\src\com\WillDesign3d\LoadQuest02
C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Binaries\Android\LoadQuest02-armv7.apk is out of date due to newer input file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Binaries\Android\LoadQuest02-armv7.so
UPL Init: armeabi-v7a
Oculus mobile init
Subsystem Google Play SDK Android init
Android Permission Plugin Init
Google Cloud Messaging init
GCMClientSenderID set: false
GooglePAD Plugin Init
GooglePAD enabled: false
Oculus mobile init
Android Voice init
LibOVRPlatform init
HWCPipe init
heapprofd init
Unsupported architecture: armeabi-v7a
GoogleGameSDK Android init
APK contains data.
Disabling Show Launch Image for Oculus Mobile enabled application
Disabling Show Launch Image for Oculus Mobile enabled application
====10/12/2021 17:50:52====PREPARING NATIVE CODE=====-armv7============================================================
bPackageDataInsideApk = False
UE4CommandLine.txt exists...
Copying C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Saved\StagedBuilds\Android_ASTC\UE4CommandLine.txt to C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\assets\UE4CommandLine.txt
Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\google\m2repository
Added repository: C:\Program Files\Epic Games\UE_4.27\Engine\Source\ThirdParty\Android\extras\android\m2repository
AARImports: com.google.android.gms, play-services-auth, 11.8.0
AARImports: com.google.android.gms, play-services-games, 11.8.0
AARImports: com.google.android.gms, play-services-nearby, 11.8.0
AARImports: com.google.android.gms, play-services-plus, 11.8.0
Copying Google Play BillingApiV2 java files
Directory Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/Source/Java/BillingApiV2 copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/src
Copying permission_library directory to staging before build
Directory C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/AndroidPermission/permission_library copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/JavaLibs/permission_library
==== Writing to OBB data file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\src\com\WillDesign3d\LoadQuest02\OBBData.java ====
==== OBB data file up to date so not writing. ====
Copying new .so C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Binaries\Android\LoadQuest02-armv7.so file to jni folder...
Copying libVkLayer_khronos_validation.so vulkan layer from C:/Users/Will/AppData/Local/Android/Sdk/ndk/21.4.7075529/sources/third_party/vulkan/src/build-android/jniLibs/armeabi-v7a
Copying libopenxr_loader.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/OculusOpenXRLoader/OculusOpenXRLoader/Lib/armeabi-v7a/libopenxr_loader.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libopenxr_loader.so
Copying libplaycore.so and proguard files
File C:/Program Files/Epic Games/UE_4.27/Engine/Plugins/Runtime/GooglePAD/Source/GooglePAD/../ThirdParty/play-core-native-sdk/libs/armeabi-v7a/ndk21.4.7075529/c++_shared/libplaycore.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libplaycore.so
Copying libvrapi.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/armeabi-v7a/libvrapi.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libvrapi.so
Copying libOVRPlugin.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/Lib/armeabi-v7a/libOVRPlugin.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libOVRPlugin.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/VrApi.jar copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/VrApi.jar
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/OVRPlugin/OVRPlugin/ExtLibs/SystemUtils.jar copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/SystemUtils.jar
Copying libovrplatformloader.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/Oculus/LibOVRPlatform/LibOVRPlatform/lib/armeabi-v7a/libovrplatformloader.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libovrplatformloader.so
File C:/Program Files/Epic Games/UE_4.27/Engine/Source/ThirdParty/HWCPipe/lib/armeabi-v7a/libhwcpipe.so copied to C:/Users/Will/Documents/Unreal Projects/LoadQuest02/Intermediate/Android/armv7/libs/armeabi-v7a/libhwcpipe.so
Copying libhwcpipe.so
====10/12/2021 17:50:53====PERFORMING FINAL APK PACKAGE OPERATION=====-armv7===========================================
Copying C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\AndroidManifest.xml to C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\gradle\app\src\main\AndroidManifest.xml
Copied file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\gradle\app\src\main\jniLibs\armeabi-v7a\libUE4.so.
Copied file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\gradle\app\src\main\libs\armeabi-v7a\libVkLayer_khronos_validation.so.
Copied file C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\gradle\app\src\main\assets\UE4CommandLine.txt.
Creating rungradle.bat to work around commandline length limit (using unused drive letter Z:)
Making .apk with Gradle...
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :downloader_library:preBuild UP-TO-DATE
> Task :downloader_library:preDebugBuild UP-TO-DATE
> Task :downloader_library:compileDebugAidl NO-SOURCE
> Task :permission_library:preBuild UP-TO-DATE
> Task :permission_library:preDebugBuild UP-TO-DATE
> Task :permission_library:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl
> Task :downloader_library:packageDebugRenderscript NO-SOURCE
> Task :permission_library:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :downloader_library:compileDebugRenderscript NO-SOURCE
> Task :downloader_library:generateDebugResValues
> Task :downloader_library:generateDebugResources
> Task :downloader_library:packageDebugResources
> Task :permission_library:generateDebugResValues
> Task :permission_library:compileDebugRenderscript NO-SOURCE
> Task :permission_library:generateDebugResources
> Task :permission_library:packageDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :downloader_library:extractDeepLinksDebug
> Task :permission_library:extractDeepLinksDebug
> Task :downloader_library:processDebugManifest
> Task :app:mergeDebugResources
> Task :permission_library:compileDebugLibraryResources
> Task :downloader_library:compileDebugLibraryResources
> Task :permission_library:processDebugManifest
> Task :app:processDebugManifest
Z:\app\src\main\AndroidManifest.xml:10:9-66 Warning:
Element category#com.oculus.intent.category.VR at AndroidManifest.xml:10:9-66 duplicated with element declared at AndroidManifest.xml:9:9-66
Z:\app\src\main\AndroidManifest.xml:13:7-81 Warning:
Element meta-data#com.oculus.vr.focusaware at AndroidManifest.xml:13:7-81 duplicated with element declared at AndroidManifest.xml:12:7-81
Z:\app\src\main\AndroidManifest.xml:48:5-90 Warning:
Element meta-data#com.oculus.supportedDevices at AndroidManifest.xml:48:5-90 duplicated with element declared at AndroidManifest.xml:47:5-90
> Task :downloader_library:generateDebugBuildConfig
> Task :permission_library:parseDebugLocalResources
> Task :downloader_library:parseDebugLocalResources
> Task :downloader_library:javaPreCompileDebug
> Task :permission_library:generateDebugBuildConfig
> Task :permission_library:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :downloader_library:mergeDebugShaders
> Task :downloader_library:compileDebugShaders NO-SOURCE
> Task :downloader_library:generateDebugAssets UP-TO-DATE
> Task :downloader_library:packageDebugAssets
> Task :permission_library:mergeDebugShaders
> Task :permission_library:compileDebugShaders NO-SOURCE
> Task :permission_library:generateDebugAssets UP-TO-DATE
> Task :permission_library:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :downloader_library:generateDebugRFile
> Task :downloader_library:compileDebugJavaWithJavac
> Task :permission_library:generateDebugRFile
> Task :app:processDebugResources
Note: Z:\permission_library\src\main\java\com\google\vr\sdk\samples\permission\PermissionFragment.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :permission_library:compileDebugJavaWithJavac
> Task :downloader_library:bundleLibCompileToJarDebug
> Task :permission_library:bundleLibCompileToJarDebug
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:562: error: variable PackagedForOculusMobile is already defined in class GameActivity
public boolean PackagedForOculusMobile = false;
^
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:565: error: method AndroidThunkJava_IsOculusMobileApplication() is already defined in class GameActivity
public boolean AndroidThunkJava_IsOculusMobileApplication()
^
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:2846: error: variable hasVR is already defined in method onCreate(Bundle)
boolean hasVR = false;
^
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:2848: error: variable vrIntent is already defined in method onCreate(Bundle)
Intent vrIntent = new Intent(Intent.ACTION_MAIN, null);
^
Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:2853: error: variable pkgManager is already defined in method onCreate(Bundle)
PackageManager pkgManager = getApplicationContext().getPackageManager();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
> Task :app:compileDebugJavaWithJavac FAILED
The following annotation processors are not incremental: lifecycle-compiler-2.0.0.jar (androidx.lifecycle:lifecycle-compiler:2.0.0).
Make sure all annotation processors are incremental to improve your build speed.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
38 actionable tasks: 38 executed
ERROR: cmd.exe failed with args /c "C:\Users\Will\Documents\Unreal Projects\LoadQuest02\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
(see C:\Users\Will\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED