无法启动陀螺仪传感器

时间:2015-06-04 22:10:16

标签: java android metaio

我正在尝试使用metaioSDK 5.5.2在Android中开发基于位置的AR应用程序,当我启动应用程序时,它告诉我它无法启动陀螺仪传感器,我有一个{{1} }。 这是日志文件:

NullPointerException

这是一段代码:

  06-05 00:59:46.487: E/metaio-java(13855): Failed to start the gyroscope sensor
  06-05 00:59:46.487: E/metaio(13855): 301: Failed to start the following quired sensors by the tracking configuration: 128

  06-05 00:59:46.492: E/metaio-java(13855): Error stopping face detection: java.lang.RuntimeException: stop face detection failed 
   06-05 00:59:46.497: E/AndroidRuntime(13855): FATAL EXCEPTION: main
  06-05 00:59:46.497: E/AndroidRuntime(13855): Process: com.mada.iacob.test, PID: 13855
  06-05 00:59:46.492: E/metaio-java(13855): Error stopping face detection: java.lang.RuntimeException: stop face detection failed
  06-05 00:59:46.497: E/AndroidRuntime(13855): FATAL EXCEPTION: main
  06-05 00:59:46.497: E/AndroidRuntime(13855): Process: com.mada.iacob.test, PID: 13855
  06-05 00:59:46.497: E/AndroidRuntime(13855): java.lang.IllegalStateException: Could not execute method of the activity
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.view.View$1.onClick(View.java:3969)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.view.View.performClick(View.java:4640)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.view.View$PerformClick.run(View.java:19425)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.os.Handler.handleCallback(Handler.java:733)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.os.Handler.dispatchMessage(Handler.java:95)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.os.Looper.loop(Looper.java:146)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.app.ActivityThread.main(ActivityThread.java:5593)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at 
java.lang.reflect.Method.invokeNative(Native Method)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at java.lang.reflect.Method.invoke(Method.java:515)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at dalvik.system.NativeStart.main(Native Method)
  06-05 00:59:46.497: E/AndroidRuntime(13855): Caused by: java.lang.reflect.InvocationTargetException
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at java.lang.reflect.Method.invokeNative(Native Method)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at java.lang.reflect.Method.invoke(Method.java:515)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at android.view.View$1.onClick(View.java:3964)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  ... 11 more
  06-05 00:59:46.497: E/AndroidRuntime(13855): Caused by: java.lang.NullPointerException
  06-05 00:59:46.497: E/AndroidRuntime(13855):  at com.mada.iacob.test.ARActivity.onGPSButtonClick(ARActivity.java:141)
  06-05 00:59:46.497: E/AndroidRuntime(13855):  ... 14 more

请有人帮我。我无法在互联网上找到任何东西,这非常重要。

0 个答案:

没有答案