Importing models using the Sceneform plugin on Android studio but getting 'error creating sfa'

Asutosh Panda picture Asutosh Panda · May 13, 2018 · Viewed 9.3k times · Source

I'm trying the new Sceneform SDK from Google for AR.

It says to use the Google Sceneform Tools plugin to import the assets. So I'm following all the steps mentioned here to import my assets.

While importing any 3D model (in .obj or .fbx format), everytime I get this error - error creating sfa with no other details of the error and then it gives an option to revert the process of asset importing.

I'm using Android Studio 3.1.2 and I'm on Linux OS (Ubuntu 18.04).

I have verified the steps again and again but everything looks fine. Anyone else facing this same issue ?

Answer

Koorosh picture Koorosh · May 14, 2018

This solution on github helped me:

Link

1.right-click the 3D asset and select "Import Sceneform Asset"

2.click "finish"

3.click "keep broken gradle changes"

4.in the "gradle files have changed..." click "sync now" - the sync succeed, the .sfa file created in sampledata folder, and .sfb file created in assets folder