Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with [closed]

Tags:

java

android

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

like image 540
Amjad ALi Sial Avatar asked Jul 22 '19 07:07

Amjad ALi Sial


1 Answers

As pointed out by Saran in the comments, there is no permanent solution for that as of now. It's a warning that you should be able to safely ignore for now.

You can try,

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

like image 139
Chrisvin Jem Avatar answered Oct 19 '22 21:10

Chrisvin Jem