0

我已将 metaio SDK 升级到版本 6,并且在操作系统版本为 4.0 的 Android 设备中遇到问题。我收到以下错误。

Could not find class 'com.metaio.sdk.ARViewActivity$1', referenced from method com.metaio.sdk.ARViewActivity.onCreate
 Could not find class 'android.hardware.display.DisplayManager', referenced from method com.metaio.sdk.ARViewActivity.onPause
 Could not find class 'android.hardware.display.DisplayManager', referenced from method com.metaio.sdk.ARViewActivity.onResume

我找不到这个错误的原因。

4

1 回答 1

0

似乎权限发生了变化

<uses-feature
    android:name="android.hardware.sensor.accelerometer"
    android:required="false" />
<uses-feature
    android:name="android.hardware.sensor.compass"
    android:required="false" />
<uses-feature
    android:name="android.hardware.sensor.gyroscope"
    android:required="false" />

对此

<uses-feature
    android:name="android.hardware.sensor.accelerometer"
    android:required="true" />
<uses-feature
    android:name="android.hardware.sensor.compass"
    android:required="true" />
<uses-feature
    android:name="android.hardware.sensor.gyroscope"
    android:required="true" />
于 2015-02-24T12:08:39.477 回答