Error :“Configuration 'compile' is obsolete and has been replaced with 'implementation'.”, even though no 'compile' present in gradle

后端 未结 6 510
离开以前
离开以前 2021-01-11 14:31

I have the following gradle files and I can\'t find anything which would still warrant the warning \"Configuration \'compile\' is obsolete and has been replace

6条回答
  •  生来不讨喜
    2021-01-11 15:18

    I had face same issue although i had replaced all 'compile' with 'implementation'. But finally resolved this issue by doing following changes in build.gradle(Project).I have replaced it

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

    with this line

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

    and after it, your gradle may give warnning again to add firebase-core than add this line in your build.gradle(app)

    dependencies{
    implementation 'com.google.firebase:firebase-core:16.0.3'
    } 
    

    Note: please check updated dependencies in any issue.

提交回复
热议问题