用Unity2022版本打包了一个空工程,安装到Oculus上,发现一直黑屏,然后又安装了一下Unity2019版本,再打包,直接闪退
看了一下日志,有如下报错:
W System.err: java.lang.RuntimeException: Requested API version (api=1.1.51.0, driver=0) is incompatible with the currently installed version. W System.err: at com.oculus.systemdriver.DriverLoader.loadInternal(DriverLoader.java:113) W System.err: at com.oculus.systemdriver.DriverLoader.load32(DriverLoader.java:292) W System.err: at com.unity3d.player.UnityPlayer.nativeRender(Native Method) W System.err: at com.unity3d.player.UnityPlayer.access$600(Unknown Source:0) W System.err: at com.unity3d.player.UnityPlayer$g$1.handleMessage(Unknown Source:150) W System.err: at android.os.Handler.dispatchMessage(Handler.java:103) W System.err: at android.os.Looper.loop(Looper.java:214) W System.err: at com.unity3d.player.UnityPlayer$g.run(Unknown Source:20)
去掉VR模式,试了一下,发现能正常启动,猜想可能是VR的SDK版本不对,于是将SDK回退到旧版本,再打包,能够正常启动了
具体的操作如下:打开Package Manager,找到Oculus XR Plugin,点击那个“小三角”展开,选择合适的版本,点击Update to ,重新打包试下,如果还不行,再切换其他版本试下
标签:unity3d,java,err,Oculus,System,apk,打包,com,黑屏 From: https://www.cnblogs.com/Jason-c/p/17406631.html