Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Found com.google.android.gms:play-services:8.4.0, but version 8.3.0 is needed for the google-services plugin

Can't use google maps because of above said error. Anyone find the same issue ?

like image 599
shijin Avatar asked Dec 21 '15 14:12

shijin


People also ask

What Android version is needed for Google Play services?

A compatible Android device that runs Android 4.4 (API level 19) or higher and has the Google Play Store app installed.

What is the current Google Play Services version?

Google Play Services 22.26.

What is GMS version in Android?

Google Mobile Services (GMS) is a collection of Google applications and APIs that help support functionality across devices. These apps work together seamlessly to ensure your device provides a great user experience right out of the box.


2 Answers

Make sure that the following line is at the end of the app build.gradle file:

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

Mine was on the top and gradle was defaulting to 8.3.0 instead of what was specified: 8.4.0

My build.gradle files are the same as the ones in the Version conflict updating to 8.4.0

like image 128
redochka Avatar answered Sep 23 '22 02:09

redochka


As those previous anweres are only part-wise complete. Here are my three steps which worked fine for me:

  1. Put this to the end of your apps build.gradle

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

  2. Set your projects build.gradle dependencies to

    'classpath 'com.google.gms:google-services:2.0.0-alpha5'

  3. Set Gradle Version to 2.10

    Android Studio: File > Project Structure > Project

like image 27
Tobias Avatar answered Sep 22 '22 02:09

Tobias