Forum Discussion
dovsherman
4 years agoProtege
Fixed! Please Help Me With This Build Fail for hello_xr
Error fixed. I removed
'arm64-v8a', from build.gradle and I added libopenxr_loader.so to all directories containing libhello_xr.so (one of them was the culprit)
So I'm trying to get hello_xr to run in Android Studio but it keeps failing and giving me this big error. I can't figure out why I'm getting the error. It shows that java.lang.UnsatisfiedLinkError: Unable to load native library "/data/app/com.khronos.openxr.hello_xr.opengles-tIYUBycymObNaVjujvzClw==/base.apk!/lib/arm64-v8a/libhello_xr.so": dlopen failed: library "libopenxr_loader.so" not found, but I can't find the directory that the error is referring to.
Update: I added all the directories libopenxr_loader.so to all the directories that contain libhello_xr.so. Now I'm getting this error:
I/llo_xr.opengle: Late-enabling -Xcheck:jni
E/llo_xr.opengle: Unknown bits set in runtime_flags: 0x8000
W/System: ClassLoader referenced unknown path:
W/NativeActivity: NativeActivity LoadNativeLibrary("/data/app/com.khronos.openxr.hello_xr.opengles-9aowYtA4Yd5ZHh7HeFQqug==/base.apk!/lib/arm64-v8a/libhello_xr.so") failed: dlopen failed: "/data/app/com.khronos.openxr.hello_xr.opengles-9aowYtA4Yd5ZHh7HeFQqug==/base.apk!/lib/arm64-v8a/libopenxr_loader.so" is 32-bit instead of 64-bit
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.khronos.openxr.hello_xr.opengles, PID: 25454
Original error:
08/26 11:58:38: Launching 'hello_xr' on Oculus Quest 2.
App restart successful without requiring a re-install.
$ adb shell am start -n "com.khronos.openxr.hello_xr.opengles/android.app.NativeActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 12428 on device 'oculus-quest_2-10.0.0.199:5555'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/llo_xr.opengle: Late-enabling -Xcheck:jni
E/llo_xr.opengle: Unknown bits set in runtime_flags: 0x8000
W/System: ClassLoader referenced unknown path:
W/NativeActivity: NativeActivity LoadNativeLibrary("/data/app/com.khronos.openxr.hello_xr.opengles-tIYUBycymObNaVjujvzClw==/base.apk!/lib/arm64-v8a/libhello_xr.so") failed: dlopen failed: library "libopenxr_loader.so" not found
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.khronos.openxr.hello_xr.opengles, PID: 12428
java.lang.UnsatisfiedLinkError: Unable to load native library "/data/app/com.khronos.openxr.hello_xr.opengles-tIYUBycymObNaVjujvzClw==/base.apk!/lib/arm64-v8a/libhello_xr.so": dlopen failed: library "libopenxr_loader.so" not found
at android.app.NativeActivity.onCreate(NativeActivity.java:178)
at android.app.Activity.performCreate(Activity.java:7825)
at android.app.Activity.performCreate(Activity.java:7814)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1306)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3259)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3424)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2030)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7400)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process: Sending signal. PID: 12428 SIG: 9
1 Reply
- Mr.KerrProtege
What is the point of this.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago