在Android Studio 3.6中使用导入Sceneform Asset导入FBX时出错 [英] Error while importing FBX with Import Sceneform Asset in Android Studio 3.6

查看:376
本文介绍了在Android Studio 3.6中使用导入Sceneform Asset导入FBX时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Sceneform android sdk动画示例项目,正在尝试导入我自己的FBX进行测试. 我将fbx添加到sampledata/models,然后单击Import Sceneform Asset.即时通讯出现错误... 由于新的导入规则,Gradle构建失败.您要还原更改吗?"

Im using a sceneform android sdk animation example project and am trying to import my own FBX for test. I add my fbx to sampledata/models and click on Import Sceneform Asset. Im getting an error ... "Gradle build failed with new import rules. Would you like to revert the changes?"

在事件日志窗口中,我得到 错误:java.lang.RuntimeException:java.lang.NoSuchMethodError:com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File; Ljava/io/File;)V

In the event log window I get Error: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;)V

我正在使用Android Studio 3.6 摇篮3.6.0 Sceneform插件1.15

Im using Android Studio 3.6 Gradle 3.6.0 sceneform plugin 1.15

任何解决此问题的建议都将受到欢迎

Any suggestion how to fix this would be welcomed

推荐答案

我遇到了这个问题,我尝试手动添加资产,并且该资产可以正常工作.

I had this problem and i tried adding the asset manually and it worked.

例如,我使用了名为andy_dance.fbx的obj

for example, I used the obj called andy_dance.fbx

所以我要做的就是在Gradle版本中添加

so what I did was add this in the Gradle build

sceneform.asset('sampledata/models/andy_dance.fbx',
    'default',
    'sampledata/models/andy_dance.sfa',
    'src/main/assets/andy_dance',
    ['sampledata/models/andy_dance.fbx'])

运行或构建您的应用,希望它能正常工作

run or build your app and hopefully, it'll work

这篇关于在Android Studio 3.6中使用导入Sceneform Asset导入FBX时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆