alvr-org / PhoneVR

Use Steam VR-enabled applications with your phone as HMD (Head-mounted display). The only Open-Source solution to similar commercial packages like VRidge, iVRy, Trinus etc etc.
GNU General Public License v3.0
561 stars 38 forks source link

AImageReader_newWithUsage not found #157

Open iDarknessSam opened 1 year ago

iDarknessSam commented 1 year ago

Hi, PVR Devs, I am facing a crash with the following Error:

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "AImageReader_newWithUsage" referenced by "/data/app/viritualisres.phonevr-1/base.apk!/lib/arm64-v8a/libalvr_client_core.so"...

You are doing a good job. Hope this helps ;)

ShootingKing-AM commented 1 year ago

This is because ALVR uses newer android apis and supports Android 8+. Have to research if its fesibile to use older apis.

https://github.com/alvr-org/ALVR/blob/c73046a0814149169cd8d9b5a67e821e33dc7338/alvr/client_core/src/platform/android.rs#L451

Also, Android 7 or lower has very small market share https://apilevels.com/. PhoneVR now supports 92.9% all devices, if we go much lower i think we will be doing much more work compared to the marketshare we gain. Can you use some newer verison of Android ? (even custom mods would do)