为obj和gltf文件导入Sceneform Asset时出错 [英] Error when importing Sceneform Asset for obj and gltf file

查看:360
本文介绍了为obj和gltf文件导入Sceneform Asset时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在导入Sceneform Asset时出现此错误:Gradle构建因新的导入规则而失败.您要还原更改吗?并且选项包括还原"和不间断的gradle更改".

I get this error while importing Sceneform Asset: Gradle build failed with new import rules. Would you like to revert the changes? and the options are Revert and Keepbroken gradle changes.

还会弹出错误消息:

错误:java.lang.RuntimeException:java.lang.NoSuchMethodError:com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File; Ljava/io/File;)V

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.5.1,并且导入工作正常.在3.6版本中,我遇到了完全相同的问题,然后崩溃了.

I think it is a problem with Android studio 3.6, I reverted to 3.5.1 and the import worked fine. With 3.6 I got the exact same problem and crash.

在我看来,随着越来越多的人遇到这个问题:

Seems to me as there are more people having this problem:

https://github.com/google-ar/sceneform -android-sdk/issues/912

这篇关于为obj和gltf文件导入Sceneform Asset时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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