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

后端 未结 3 534
广开言路
广开言路 2021-01-13 00:32

I\'ve been getting this error every time I build my app. I think that I have all the libraries updates, someone can tell me where is the problem? Apparently, I think that co

相关标签:
3条回答
  • 2021-01-13 00:55

    Looks like it is caused by gms services 4.3.0. This seems to be just a warning and not causing any problems. However, if you want you can use an earlier version of gms services in your project level gradle file to get rid of it:

    com.google.gms:google-services:4.2.0
    
    0 讨论(0)
  • 2021-01-13 00:56

    I had exactly same warning and i removed this line from my app's build.gradle.

    apply plugin: 'com.google.gms.google-services'

    Turned out i didn't need the plugin and the warning disappeared.

    0 讨论(0)
  • 2021-01-13 01:05

    Technically it's a 'WARNING' and not an error. To eliminate the need for the warning, downgrade your gms to a lower version such as 4.2.0.

    0 讨论(0)
提交回复
热议问题