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

前端 未结 3 600
长情又很酷
长情又很酷 2020-12-01 21:25

I\'m experiencing very annoying warning in my projects:

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


        
3条回答
  •  庸人自扰
    2020-12-01 21:33

    Two versions of the Google Services Gradle Plugin (4.3.0 & 4.3.1) are causing this, upgrading the version to 4.3.2 seems to solve the issue;


    In your project-level build.gradle file, under buildscript -> dependencies, check whether you have this line

    classpath 'com.google.gms:google-services:4.3.x'
    

    if so, change it to

    classpath 'com.google.gms:google-services:4.3.3'
    

    Edit: Click here to check the newest version. (4.3.3) at time of Edit.

提交回复
热议问题