–1 vote
by (160 points)

As the XR plugin won't start, the game can't initialize any screen and stops.
Buliding with Development mode ON doesn't generate this exception...
Please help.

Here is the Exception:
01-27 15:23:56.404 20262 20297 I Unity : XRGeneral Settings awakening...
01-27 15:23:56.404 20262 20297 I Unity : UnityEngine.XR.Management.XRGeneralSettings:Awake()
01-27 15:23:56.404 20262 20297 I Unity :
01-27 15:23:56.507 20262 20297 E Unity : AndroidJavaException: java.lang.ClassNotFoundException: com.psmart.aosoperation.SysActivity
01-27 15:23:56.507 20262 20297 E Unity : java.lang.ClassNotFoundException: com.psmart.aosoperation.SysActivity
01-27 15:23:56.507 20262 20297 E Unity : at java.lang.Class.classForName(Native Method)
01-27 15:23:56.507 20262 20297 E Unity : at java.lang.Class.forName(Class.java:454)
01-27 15:23:56.507 20262 20297 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
01-27 15:23:56.507 20262 20297 E Unity : at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
01-27 15:23:56.507 20262 20297 E Unity : at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
01-27 15:23:56.507 20262 20297 E Unity : at android.os.Handler.dispatchMessage(Handler.java:103)
01-27 15:23:56.507 20262 20297 E Unity : at android.os.Looper.loop(Looper.java:214)
01-27 15:23:56.507 20262 20297 E Unity : at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
01-27 15:23:56.507 20262 20297 E Unity : Caused by: java.lang.ClassNotFoundException: com.psmart.aosoperation.SysActivity
01-27 15:23:56.507 20262 20297 E Unity : ... 8 more
01-27 15:23:56.507 20262 20297 E Unity : at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
01-27 15:23:56.507 20262 20297 E Unity : at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0
01-27 15:23:56.507 20262 20297 E Unity : at UnityEngine.AndroidJavaClass.AndroidJavaClass (System.String className) [0x00000] in <000000000 01-27 15:23:56.511 20262 20297 I Unity : [PXR_Plugin/System] FrameID=0>>>>>>UPxrLoadPicoPlugin
01-27 15:23:56.511 20262 20297 I Unity : Unity.XR.PXR.PLog:d(String, String)
01-27 15:23:56.511 20262 20297 I Unity : Unity.XR.PXR.System:UPxrLoadPicoPlugin()
01-27 15:23:56.511 20262 20297 I Unity : Unity.XR.PXR.PXR
Loader:RuntimeLoadPicoPlugin()
0

2 Answers

0 votes
by (7.7k points)

Is "development mode" the option in the picture?

enter image description here

by (160 points)

Indeed and the Unity XR plugin version is latest 2.0.3.

by (55.5k points)

Dear Developer,
Could you please send your demo project to our email address? Please named the email by the title of this question. We will check it.
pico_devanswers@bytedance.com

0 votes
by (160 points)

For those stuck with the same problem, the following should fix the problem:

Uncheck the "Release" option in Project Settings->Player->Publishing Setting->Minify
This will not trigger JavaException with Development mode OFF.

Cheers,
Diego

...