前几天看到项目 build.gradle 里的 Google Play Service 8.3.0 有提示可以升级到8.4.0版本

强迫症看着这波浪线浑身难受就顺手改了下引用版本号,gradle 编译完成后报错,看起来自相矛盾的样子。

1
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 8.3.0.

在 Google Service 官方的 sample 中用了这样的方法,把原来写在 build.gradle 文件头部的

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

放到文件底部。而文档里根本没有提起,对这字母表公司好感度越来越低了。