我正在做一份大学作业,需要创建一个vr游戏使用CardBoard。然而,我尝试导入到手机上时,却会直接退出游戏,并显示一个错误信息。我已经禁用了minify,这个插件也是正确解压的,我却不知道该怎么办了。设备信息如下:

Redmi/tanzanite_global/tanzanite:15/AP3A.240905.015.A2/OS2.0.210.0.VOGMIXM:user/release-keys

错误信息如下:

Abort message: 'JNI DETECTED ERROR IN APPLICATION: java_class == null

in call to RegisterNatives'

栈跟踪如下:

#00 pc 000000000005dec4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 2d643b9d04346862a8e0c7d49db87c66)

#01 pc 00000000008a0c74 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+476) (BuildId: 80d2ab18f9d259d8e546c1e6bae752b1)

#02 pc 0000000000016188 /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+80) (BuildId: 8aca1185566f3990ce9d6c61841c18af)

#03 pc 0000000000015730 /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::\~LogMessage()+544) (BuildId: 8aca1185566f3990ce9d6c61841c18af)

#04 pc 00000000004e7114 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+804) (BuildId: 80d2ab18f9d259d8e546c1e6bae752b1)

#05 pc 00000000003a874c /apex/com.android.art/lib64/libart.so (art::JNI<false>::RegisterNatives(_JNIEnv*, _jclass*, JNINativeMethod const*, int)+2220) (BuildId: 80d2ab18f9d259d8e546c1e6bae752b1)

...)

详细的堆栈信息可以在以下网址找到:

https://preview.redd.it/5uiciu2r5tsg1.png?width=812&format=png&auto=webp&s=7002755a2eb9836aa2219766e1d1498212f8caca

https://preview.redd.it/hma4gnat5tsg1.png?width=778&format=png&auto=webp&s=2d6ae723a5ae8fd7daf3bfcba32f74d6c813e7a4

https://preview.redd.it/xseb3v4x5tsg1.png?width=761&format=png&auto=webp&s=06283ef962678741d13b3e01e956503da97da990

https://preview.redd.it/1lph18qy5tsg1.png?width=764&format=png&auto=webp&s=65b2bc4cc1b341dc71da93bf63afd93f2a48734a