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
- build.gradle修正 gms4.3.1 -> 4.2.0 https://github.com/google/play-services-plugins/issues/65 — committed to hacku2019-tcp/EmergencyNotification-app by Crow314 5 years ago
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:
And replace the plugin in your list of dependencies:
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
Yes, the warning is still there with
com.google.gms:google-services:4.3.1
(but not with4.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
andstrict-version-matcher-plugin
from the repo + add some boilerplate for Jitpack. Looking forward to an official release soon as well.