我已将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
我找不到这个错误的原因。
答案 0 :(得分: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" />