Google 在 Android Studio 2.1.2 中播放服务冲突

Google play services Conflict in Android Studio 2.1.2

我收到这个错误:

Found com.google.android.gms:play-services-auth:9.4.0, but version 9.0.0 is needed for the google-services plugin.

逼迫我使用9.0.0版本,但我想使用9.4.0.

我们将不胜感激。

我也遇到了这个问题,通过简单地将这一行放在应用程序 gradle 文件的末尾而不是顶部找到了解决方案

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