在世博会上打开相机

opening camera in Expo

我正在尝试使用 Expo XDE 在我的 android 设备上 运行 此代码 (https://snack.expo.io/Hk1C_YqjW),但是当涉及到这一行时:

const arSession = await this._glView.startARSessionAsync();

显示此错误并停止:

[Unhandled Promise rejection: TypeError: undefined is not an object (evaluating '_reactNative.NativeModules.ExponentGLViewManager.startARSessionAsync')]

有什么问题?

Expo 在 Android 上尚不支持 ARCore,仅在 iOS 上支持 ARKit。在 https://docs.expo.io/versions/latest/sdk/AR

查看更多信息