Sceneform-android-sdk: Warning on upgrade to Android Studio 3.3 and Gradle 4.10.1

Created on 28 Jan 2019  路  5Comments  路  Source: google-ar/sceneform-android-sdk

I got the following warning after updating Android Studio to 3.3 and the gradle to the latest version. Is there a way to debug/fix this warning?

WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: app

bug

Most helpful comment

WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: app

I am facing the same issue when installing sceneform to android studio , please help me to solve this..

All 5 comments

WARNING: API 'variant.getMergeAssets()' is obsolete and has been replaced with 'variant.getMergeAssetsProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: app

I am facing the same issue when installing sceneform to android studio , please help me to solve this..

Same here after adding :

 implementation "com.google.ar.sceneform:core:1.6.0"
 implementation "com.google.ar.sceneform.ux:sceneform-ux:1.6.0"

in dependencies and :

apply plugin: 'com.google.ar.sceneform.plugin'

sceneform.asset('sampledata/models/andy.obj', // Source Asset Path
        'default', // Material Path
        'sampledata/models/andy.sfa',// .sfa Output Path
        'src/main/res/raw/andy')// .sfb Output Path

Do we have any solution for the same? I am facing this issue.

Our understanding is that for the moment the getMergeAssets warning is benign at this time and your builds should complete successfully regardless of the warning.

We are working on correcting the warning in an upcoming release.

Roll back the version of gradle

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PaulTVungle picture PaulTVungle  路  3Comments

StevenOttoG picture StevenOttoG  路  4Comments

yashvv picture yashvv  路  3Comments

scolar picture scolar  路  4Comments

JessHolle picture JessHolle  路  3Comments