为 obj 和 gltf 文件导入 Sceneform Asset 时出错 [英] Error when importing Sceneform Asset for obj and gltf file
问题描述
我在导入 Sceneform Asset 时收到此错误:Gradle 构建失败,使用新的导入规则.您要还原更改吗?选项是 Revert 和 Keepbroken gradle changes.
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屋!