使用 Android Studio 上的 Sceneform 插件导入模型,但出现“创建 sfa 错误”

Asu*_*nda 5 android android-studio arcore sceneform

我正在尝试来自 Google 的用于 AR的新Sceneform SDK。

它说要使用 Google Sceneform Tools 插件来导入资产。所以我按照这里提到的所有步骤导入我的资产。

在导入任何 3D 模型(.obj 或 .fbx 格式)时,每次我收到此错误时 -创建 sfa出错,没有其他错误详细信息,然后它提供了恢复资产导入过程的选项。

我使用的是 Android Studio 3.1.2,我使用的是 Linux 操作系统(Ubuntu 18.04)。

我一次又一次地验证了这些步骤,但一切看起来都很好。还有其他人面临同样的问题吗?

Asu*_*nda 0

Google 现在已经更新了 Sceneform gradle 插件,修复了此错误。使用 Sceneform 插件版本 1.0.1。

在您的项目 build.gradle 文件中,替换此 -

classpath 'com.google.ar.sceneform:plugin:1.0.0'
Run Code Online (Sandbox Code Playgroud)

有了这个 -

classpath 'com.google.ar.sceneform:plugin:1.0.1'
Run Code Online (Sandbox Code Playgroud)

它应该完美地导入您的资产。现在对我有用。