在导入Sceneform资产时出现此错误。我已经添加了
dependencies {
classpath 'com.google.ar.sceneform:plugin:1.15.0
}
也在项目级gradle文件中
dependencies {
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.15.0"
}
答案 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