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

前端 未结 3 595
长情又很酷
长情又很酷 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:32

    Please change your classpath dependency in project level Gradle:

    buildscript {
    
        dependencies {
    
             classpath 'com.android.tools.build:gradle:3.1.4'
        }
     }
    

    I am using it. It is working fine. This is a stable version. Hope this issue will be fixed in the future version of this dependency.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-12-01 21:57

    Is a known issue, will be fixed on the next release:

    https://github.com/google/play-services-plugins/issues/65

    https://github.com/google/play-services-plugins/pull/62

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