Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict

后端 未结 13 2616
生来不讨喜
生来不讨喜 2021-02-19 01:26

After updating my google play services to rev 28 i\'m getting this error. Im not sure why this is happening as it was working fine before.

here is my build.gradl

13条回答
  •  一个人的身影
    2021-02-19 02:09

    Use these dependencies for the project build.gradle

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.1'
        classpath 'com.google.gms:google-services:3.0.0'
    }
    

    and put this at the end of the app-level build.gradle file (after the dependencies). For some reason I don't understand if you put it at the beginning it will cause problems, make sure you place it at the end.

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

提交回复
热议问题