Cockpit Aliens
Cockpit Aliens

Reputation: 411

Android Gradle Plugin (Warning) API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'

I am trying to build and run this repository augmented-images and I encounted this error.

Caused by: java.lang.RuntimeException: Error creating sfa.

Which drill down to this warning Warning ! API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.

More from the build log analysis I see the following errors ERROR: Failed to import 'sampledata/airplane/Airplane.obj'

I tried to find where this

variant.getMergeResources()

is used so I can replace it but no luck.

Please assist maybe I need to update the plugin. Which steps should I follow that is what I suspect will be the solution.

Upvotes: 7

Views: 2253

Answers (2)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364506

Now it is fixed with the release 'com.google.gms:google-services:4.3.2'

This issue is caused by the versions of the Google Services pluigin for gradle 4.3.0 and 4.3.1.

Upvotes: 0

darshan
darshan

Reputation: 4569

Changing classpath 'com.google.gms:google-services:4.3.0' to classpath 'com.google.gms:google-services:4.2.0' works for now..

Upvotes: 12

Related Questions