API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'

后端 未结 6 1764
时光说笑
时光说笑 2021-02-03 17:36

When building gradle I\'m getting this message:

API \'BaseVariant.getApplicationIdTextResource\' is obsolete and has been replaced with \'VariantPr

6条回答
  •  一整个雨季
    2021-02-03 18:10

    few days i see the same issue. Then i go to -> build.gradle file

    My Dependencies before update

    check the dependencies

    I update the dependencies google services to 4.3.4

    dependencies {
        classpath 'com.android.tools.build:gradle:4.1.1'
        classpath 'com.google.gms:google-services:4.3.4'
    
    
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    

    After update

    Now its working fine.

提交回复
热议问题