UE4-Source: Oculus Quest Build failed java cannot find symbol

Hi guys and gals,

I’ve tried following this tutorial (How to do Oculus Quest HAND TRACKING In Unreal Engine 4 - 4.24 - YouTube) to build a hand tracking app for the Oculus quest using this plugin: GitHub - rfsheffer/QuestHands: An Unreal Engine 4 plugin for the new Oculus Quest hands tracking. To tie us over till Oculus's official release..
I’ve downloaded the Oculus branch of UE 4.24 from github and ran it using Visual Studio. I’ve reinstalled the Codeworks for Android 1R7u1 from the Github-Branch I’ve downloaded and created a VR-Project just like in the tutorial.
Unfortunately I am unable to build the app. I always get the error “UATHelper: Packaging (Android (ASTC)): Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:996: error: cannot find symbol”

Here is everything in the output log that comes after this error:

UATHelper: Packaging (Android (ASTC)):   Z:\app\src\main\java\com\epicgames\ue4\WebViewControl.java:996: error: cannot find symbol
UATHelper: Packaging (Android (ASTC)):                 GLES20.glGetTexParameteriv(GLES20.GL_TXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, glInt, 0);
UATHelper: Packaging (Android (ASTC)):                                                  ^
UATHelper: Packaging (Android (ASTC)):     symbol:   variable GL_TXTURE_2D
UATHelper: Packaging (Android (ASTC)):     location: class GLES20
PackagingResults: Error: cannot find symbol
LogSlate: Took 0.001231 seconds to synchronously load lazily loaded font '../../../Engine/Content/Slate/Fonts/DroidSansFallback.ttf' (3848K)
LogSlate: Last resort fallback font was requested. Font: '../../../Engine/Content/Slate/Fonts/DroidSansFallback.ttf', Character: ' (U+0005)'
LogSlate: Took 0.002122 seconds to synchronously load lazily loaded font '../../../Engine/Content/SlateDebug/Fonts/LastResort.ttf' (5269K)
UATHelper: Packaging (Android (ASTC)):   Note: Some input files use or override a deprecated API.
UATHelper: Packaging (Android (ASTC)):   Note: Recompile with -Xlint:deprecation for details.
UATHelper: Packaging (Android (ASTC)):   1 error
UATHelper: Packaging (Android (ASTC)):   :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * What went wrong:
UATHelper: Packaging (Android (ASTC)):   Execution failed for task ':app:compileDebugJavaWithJavac'.
UATHelper: Packaging (Android (ASTC)):   > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * Try:
UATHelper: Packaging (Android (ASTC)):   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.
UATHelper: Packaging (Android (ASTC)):   38 actionable tasks: 1 executed, 37 up-to-date
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ASTC)):   
UATHelper: Packaging (Android (ASTC)):   BUILD FAILED in 8s
UATHelper: Packaging (Android (ASTC)):   ERROR: cmd.exe failed with args /c "E:\UE4\QuestHandTracking\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleDebug
UATHelper: Packaging (Android (ASTC)): Took 529,0197593s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool failed. See log for more details. (C:\UE4\UE4_24_oculus\Engine\Programs\AutomationTool\Saved\Logs\UBT-QuestHandTracking-Android-Development.txt)
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: cmd.exe failed with args /c "E:\UE4\QuestHandTracking\Intermediate\Android\APK\gradle\rungradle.bat" :app:assembleDebug
PackagingResults: Error: Unknown Error
LogHttp: Warning: 0000015BD2EA87C0: invalid HTTP response code received. URL: https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID=%7BE5DBB042-40EB-720E-F631-9B8BBDE0775A%7D&AppID=UEEditor.UnrealEngine.Release&AppVersion=4.24.1-0%2B%2B%2BUE4%2BPartner-Oculus-4.24&UserID=a4ff58f6446876c7bd0c2d9f17524c58%7C8c8810fc58784d279f4b088bb6bc1be
d%7Cf30b456a-d2ad-43bb-bcd1-a6ec5e8a3952&AppEnvironment=datacollector-source&UploadType=eteventstream, HTTP code: 0, content length: 0, actual payload size: 0
LogHttp: Warning: 0000015BD2EA87C0: request failed, libcurl error: 0 (No error)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 0 (Found bundle for host datarouter.ol.epicgames.com: 0x15bc78d3f70 [can pipeline])
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 1 (Re-using existing connection! (#6) with host datarouter.ol.epicgames.com)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 2 (Connected to datarouter.ol.epicgames.com (54.164.83.253) port 443 (#6))
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 3 (We are completely uploaded and fine)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 4 (TLSv1.2 (IN), TLS alert, Client hello (1):)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 5 (Connection died, retrying a fresh connect)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 6 (necessary data rewind wasn't possible)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 7 (Closing connection 6)
LogHttp: Warning: 0000015BD2EA87C0: libcurl info message cache 8 (TLSv1.2 (OUT), TLS alert, Client hello (1):)
LogHttp: Warning: Retry exhausted on https://datarouter.ol.epicgames.com/datarouter/api/v1/public/data?SessionID=%7BE5DBB042-40EB-720E-F631-9B8BBDE0775A%7D&AppID=UEEditor.UnrealEngine.Release&AppVersion=4.24.1-0%2B%2B%2BUE4%2BPartner-Oculus-4.24&UserID=a4ff58f6446876c7bd0c2d9f17524c58%7C8c8810fc58784d279f4b088bb6bc1bed%7Cf30b456a-d2ad-43bb-bcd1-a6ec5e8a3952&
AppEnvironment=datacollector-source&UploadType=eteventstream

I can build and package apps for the oculus quest using the Epic Games Launcher UE4 version. I’ve successfully tested that. But here I don’t know what to do.
In the project settings - Android SDK I’ve set all the paths and set the SDK API Level to “matchndk” and the NDK API Level to “latest” (I’ve also tried android-19).

Has anyone had this problem?
Thanks in advance!

1 Like

It seems I’ve found the solution myself:
I downloaded the Oculus Github version of UE4 again. It seems to be a different version than the one linked from the plugin. I think this is the one I’ve got: https://github.com/Oculus-VR/UnrealEngine
Tried to package with this one and it worked. The plugin folder has to be in the “Engine” folder for it to work. Cannot be in the “Plugins” folder of the project, since it has to be rebuilt and won’t work.
But now I can package and build for Oculus Quest with hand tracking. Yay!
Time to test this out…

1 Like

Any idea why Oculus doesn’t seem to have a public Github anymore?

I had the Same issues. This is my 13th attempt !!