Closed tMarenzi closed 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.
Hi @jwmcglynn , you were right, I totally forgot to update the Sceneform Tools plugin. Now it is working as expected.
Thanks
Hi,
I'm using
sceneform:core:1.4.0
andsceneform.ux:sceneform-ux:1.4.0
. I've successfully imported a FBX file and I was trying to change itsrecenter
property.The documentation says that recenter can be set to:
true
false
"root"
{x: float, y:float, z:float}
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:"root"
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.
What went wrong: Execution failed for task ':app:compileAsset-src_47main_47assets_47dummy'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 0s
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.
What went wrong: Execution failed for task ':app:compileAsset-src_47main_47assets_47dummy'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
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.
What went wrong: Execution failed for task ':app:compileAsset-src_47main_47assets_47dummy'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 0s