google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Error creating sfa #870

Open XY-quantum opened 5 years ago

XY-quantum commented 5 years ago

OS: Window 10 Pro Android Studio: 3.5 sceneform1.9.0

Error is "at com.google.ar.sceneform.plugin.CreateRCATask.action (CreateRCATask.java:131)", but I cannot find THE file CreateRRCATask.java, even THE plugin folder. Also, trying to find it by downloading the source code.

BTW, if used the version 1.12.0 or >1.9.0, the error context would be changed to only "Error creating sfa".

tpsiaki commented 5 years ago

The CreateRCATask.java is part of the Sceneform Android Studio plugin. We didn't add support for Android Studio 3.5 until the 1.12 version of the Android Studio plugin, so your options are:

  1. Upgrade to Sceneform SDK 1.12 and the 1.12 Android Studio plugin
  2. Downgrade to Android Studio 3.4.2
  3. Uninstall the Sceneform Android Studio plugin and instead manually edit your build.gradle files to add the Sceneform asset specifications.
plutomen commented 4 years ago

how to create .sfa file without plugin ? i am using gradle 3.6.1 and implementation "com.google.ar.sceneform.ux:sceneform-ux:1.12.0" with scenform plugin 1.15.0 now old created sfa file run proper but i added new .obj file and now i want to have .sfb and .sfa files but it gives me an error Error: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.android.tools.idea.templates.recipe.RecipeExecutor.append(Ljava/io/File;Ljava/io/File;)V

so i downgrade studio to 3.5.2 but it still give error in creating sfa please help me what to do is there any other way to create .sfa and .sfb files ?