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

Build failure due to "recenter" value #300

Closed tMarenzi closed 6 years ago

tMarenzi commented 6 years ago

Hi,

I'm using sceneform:core:1.4.0and sceneform.ux:sceneform-ux:1.4.0. I've successfully imported a FBX file and I was trying to change its recenter property.

The documentation says that recenter can be set to:

I've tried using both "root" or {x: 0.0, y:0.0, z:0.5}, but the project kept failing with the following errors:

Configuration on demand is an incubating feature. :app:unzipSceneformSdk UP-TO-DATE :app:createAsset-src_47main_47assets_47dummy UP-TO-DATE ERROR: 288:0: error: type mismatch: expecting: bool, found: string Command Line: /Users/tmarenzi/Documents/AndroidStudio/ar-shirt-android/app/build/sceneform_sdk/mac/converter sampledata/manichino/Camicia_2.sfa --desktop --output src/main/assets/dummy :app:compileAsset-src_47main_47assets_47dummy FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 0s

- For `{x: 0.0, y:0.0, z:0.5}`

Executing tasks: [compileAsset-src_47main_47assets_47dummy]

Configuration on demand is an incubating feature. :app:unzipSceneformSdk UP-TO-DATE :app:createAsset-src_47main_47assets_47dummy UP-TO-DATE ERROR: 288:0: error: cannot parse value starting with: { Command Line: /Users/tmarenzi/Documents/AndroidStudio/ar-shirt-android/app/build/sceneform_sdk/mac/converter sampledata/manichino/Camicia_2.sfa --desktop --output src/main/assets/dummy :app:compileAsset-src_47main_47assets_47dummy FAILED

FAILURE: Build failed with an exception.

Executing tasks: [compileAsset-src_47main_47assets_47dummy]

Configuration on demand is an incubating feature. :app:unzipSceneformSdk UP-TO-DATE :app:createAsset-src_47main_47assets_47dummy UP-TO-DATE ERROR: 288:0: error: type mismatch: expecting: bool, found: string Command Line: /Users/tmarenzi/Documents/AndroidStudio/ar-shirt-android/app/build/sceneform_sdk/mac/converter sampledata/manichino/Camicia_2.sfa --desktop --output src/main/assets/dummy :app:compileAsset-src_47main_47assets_47dummy FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 0s



Am I missing something?
jwmcglynn commented 6 years ago

It looks like you may have an out-of-date version of the Sceneform Tools. Previously, the recenter property was available but only allowed the true/false values. In Sceneform 1.4, it was extended to include "root" and the x/y/z functionality.

Try following the steps on https://developers.google.com/ar/develop/java/sceneform/import-assets to update the plugin.

tMarenzi commented 6 years ago

Hi @jwmcglynn , you were right, I totally forgot to update the Sceneform Tools plugin. Now it is working as expected.

Thanks