当我尝试在Android版本中打开ARScene时遇到以下问题。我根本没有使用“ onTrackingUpdated”方法。
2019-08-05 11:27:29.851 15376-15376/? E/Viro: ERROR: [/Users/manish/workspace/ViroRenderer/android/app/../../ViroRenderer/VROPlatformUtil.h: VROPlatformCallHostFunction(), line 300]
ERROR: Unable to find method onTrackingUpdated callback.
2019-08-05 11:27:29.852 15376-15376/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapp.sample, PID: 15376
java.lang.NoSuchMethodError: no non-static method "Lcom/viro/core/ARScene;.onTrackingUpdated(II)V"
at com.viro.core.internal.PlatformUtil.runTask(Native Method)
at com.viro.core.internal.PlatformUtil.access$000(PlatformUtil.java:58)
at com.viro.core.internal.PlatformUtil$TaskRunnable.run(PlatformUtil.java:78)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6944)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
在Debug版本中,它可以正常工作,并且我能够成功加载3D模型。该问题仅在Android Release版本中发生。