导入Sceneform资产时显示错误

时间:2020-02-20 07:52:13

标签: android arcore sceneform

在导入Sceneform资产时出现此错误。我已经添加了

dependencies {
    classpath 'com.google.ar.sceneform:plugin:1.15.0
}

也在项目级gradle文件中

dependencies {
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.15.0"
}

我进行了大量搜索,但收到此错误 enter image description here

1 个答案:

答案 0 :(得分:0)

您应使用此格式在项目gradle中手动导入模型

  apply plugin: 'com.google.ar.sceneform.plugin'

sceneform.asset('sampledata/models/andy.obj', // 'Source Asset Path' specified during import.
        'default',                            // 'Material Path' specified during import.
        'sampledata/models/andy.sfa',         // '.sfa Output Path' specified during import.
        'src/main/res/raw/andy')              // '.sfb Output Path' specified during import.

如此处所示:https://developers.google.com/sceneform/develop/import-assets