Error while importing FBX with Import Sceneform Asset in Android Studio 3.6

NccWarp9 :

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?"

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

Im using Android Studio 3.6 Gradle 3.6.0 sceneform plugin 1.15

Any suggestion how to fix this would be welcomed

Esraa Alh :

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

for example, I used the obj called andy_dance.fbx

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=32898&siteId=1