play-services-plugins: Error using com.google.gms: google-services: 4.3.0 (and 4.3.1)

With Android Studio 3.4.1

Previously I used com.google.gms: google-services: 4.2.0 but Android Studio told me there was a new update, then update to the new version com.google.gms: google-services: 4.3.0 and now I get a warning every time I compile my project, it makes me nervous to see errors when compiling.

This is the warning message I get:

WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.
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.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Affected Modules: app

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 39
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Since #62 got merged and released as part of 4.3.1, is this still and issue?

Yes, i still have the warning.

I’ve forked the Google Play Services Plugin here and merged @jzbrooks’s PR which fixes this issue.

To use it add JitPack to your list of repositories:

buildscript {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}

And replace the plugin in your list of dependencies:

buildscript {
    dependencies {
        // Replace "classpath 'com.google.gms:google-services:4.3.0'" with:
        classpath 'com.github.colinrtwhite:google-services:9da6686'
    }
}

It will be fixed by #62. Just ignore it for now.

Huh, OK, will continue to take a look.

+1 still exists with 4.3.1

Since #62 got merged and released as part of 4.3.1, is this still and issue?

Yes, the warning is still there with com.google.gms:google-services:4.3.1 (but not with 4.2.0)

Since #62 got merged and released as part of 4.3.1, is this still and issue?

@mikehardy Most of the deletions are because I had to remove oss-licenses-plugin and strict-version-matcher-plugin from the repo + add some boilerplate for Jitpack. Looking forward to an official release soon as well.