3

when I put apply plugin: 'com.google.gms.google-services' it show this error

WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'. It will be removed at the end of 2019.

When I Use lower Version of google service or If I remove google plugin, this error doesn't show. But other feature not working properly.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Synonian_raj
  • 154
  • 1
  • 13
  • Possible duplicate of [Android Gradle Plugin (Warning) API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'](https://stackoverflow.com/questions/54878137/android-gradle-plugin-warning-api-variant-getmergeresources-is-obsolete-an) – Shashanth Jul 20 '19 at 15:31

1 Answers1

0

There is no permanent solution as of now, as the answer referenced by Shashanth in the comments states,

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

On the other hand, if you're asking this since you're working with Sceneform and Firebase is unable to be configured. Then this is an open issue, with the following 'potential fix'.

You can switch off Sceneform plugin, sync and try to connect to Firebase again - must be success now.

After successful connection to Firebase you can return your plugin and resync. Warning will appear again, but it is not important, because Firebase has configured already.

P.S - This is probably an issue in the google services, which they'll fix in the future versions, so as long as it doesn't break anything, you shouldn't really need to worry.

Community
  • 1
  • 1
Chrisvin Jem
  • 3,940
  • 1
  • 8
  • 24