Google Sceneform Tools(BETA)未创建.sfa [英] Google Sceneform Tools (BETA) doesn't create .sfa

查看:326
本文介绍了Google Sceneform Tools(BETA)未创建.sfa的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注

I'm following this codelab and when i right click the .obj files and select "import sceneform asset" it doesn't create the sfa file, and this error is displayed

java.lang.NoSuchMethodError: com.android.tools.idea.gradle.util.GradleUtil.getGradleBuildFilePath(Ljava/io/File;)Ljava/io/File;
    at com.google.ar.sceneform.plugin.actions.ui.GenerateSfbModel.handleFinished(GenerateSfbModel.java:444)
    at com.android.tools.idea.wizard.model.ModelWizard.handleFinished(ModelWizard.java:402)
    at com.android.tools.idea.wizard.model.ModelWizard.goForward(ModelWizard.java:330)
    at com.android.tools.idea.wizard.model.ModelWizardDialog$FinishAction.doAction(ModelWizardDialog.java:313)
    at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1834)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6550)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
    at java.awt.Component.processEvent(Component.java:6315)
    at java.awt.Container.processEvent(Container.java:2239)
    at java.awt.Component.dispatchEventImpl(Component.java:4899)
    at java.awt.Container.dispatchEventImpl(Container.java:2297)
    at java.awt.Component.dispatchEvent(Component.java:4721)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
    at java.awt.Container.dispatchEventImpl(Container.java:2283)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4721)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:766)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
    at java.awt.EventQueue$4.run(EventQueue.java:739)
    at java.awt.EventQueue$4.run(EventQueue.java:737)
    at java.security.AccessController.doPrivileged(Native Method)

    .....

我直接从AndroidStudio(v4.0.1)安装插件,Google Sceneform是1.15.0 我试图将AndroidStudio更新为4.1,但这显示了

I'm installing the plugin directly from AndroidStudio (v4.0.1), Google Sceneform is 1.15.0 I tried to update AndroidStudio to 4.1, but this shows up

"Plugin Error: Plugin "Google Sceneform Tools (Beta)" is incompatible (supported only in IntelliJ IDEA)."

我该如何解决?

推荐答案

ARCore Scenefrom已开源和存档"-请参阅此处的说明( https://developers.google.com/sceneform/develop ):

ARCore Scenefrom has been 'open sourced and archived' - see the note here (https://developers.google.com/sceneform/develop):

适用于Android的Sceneform SDK已通过1.16.0版开源和存档(github.com/google-ar/sceneform-android-sdk).

Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.

此网站(developers.google.com/sceneform)充当先前版本Android 1.15.0的Sceneform SDK的文档存档.

This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.

请勿使用Sceneform Maven工件的1.17.0版.

Do not use version 1.17.0 of the Sceneform Maven artifacts.

可以使用1.17.1 Maven工件.但是,除了版本以外,1.17.1工件与1.15.0工件相同.

The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

因此,您可能要考虑现在如何以及是否要使用Scene.

So, you may want to consider how and if you want to use Scenefrom now.

对于您遇到的特定问题,这是该版本的Android Studio和Sceneform的一个已知问题-请在此处查看解决方法: https://stackoverflow.com/a/60515952/334402

For the specific problem you are seeing, this is an known issue with that version of Android Studio and Sceneform - see here for a workaround: https://stackoverflow.com/a/60515952/334402

这篇关于Google Sceneform Tools(BETA)未创建.sfa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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