You need to put the apply plugin: 'com.google.gms.google-services'
line below your dependencies
block – this allows the plugin to determine what version of Play services you are using.
More Related Contents:
- Android Studio: “Execution failed for task ‘:app:mergeDebugResources’” if project is created on drive C:
- Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23
- Include .so library in apk in android studio [duplicate]
- You have not accepted the license agreements of the following SDK components [duplicate]
- Could not find com.android.tools.build:gradle:3.0.0-alpha1 in circle ci
- Android Studio – mergeDebugResources exception
- How do I import material design library to Android Studio?
- Failed to resolve: com.google.firebase:firebase-core:11.2.0
- Android Studio marks R in red with error message “cannot resolve symbol R”, but build succeeds
- AndroidStudio gradle proxy
- Android Studio: Gradle sync failed: Could not HEAD ‘…’. Received status code 502 from server: Bad Gateway [closed]
- A failure occurred while executing com.android.build.gradle.internal.tasks
- Incompatible plugins for android-apt after upgrading to Android Studio 2.3
- Cannot resolve symbol ‘AppCompatActivity’
- Android Studio : Failure [INSTALL_FAILED_OLDER_SDK]
- How to resolve java.util.zip.ZipException?
- how can I add the aidl file to Android studio (from the in-app billing example)
- Android Studio Gradle issue upgrading to version 0.5.0 – Gradle Migrating From 0.8 to 0.9 – Also Android Studio upgrade to 0.8.1
- Run lint when building android studio projects
- Gradle Sync failed could not find constraint-layout:1.0.0-alpha2
- How to automatically uninstall android app from device before installing a new version
- Could not find com.android.tools.build:gradle:4.0.1 ( or any version )
- Why does play-services-location need the android.permission.WRITE_EXTERNAL_STORAGE and android.permission.READ_EXTERNAL_STORAGE permissions?
- Android Studio – Unable to find valid certification path to requested target
- Recompile with -Xlint in Android studio
- Add GitHub library as dependency to Android Studio project
- Gradle flavors for android with custom source sets – what should the gradle files look like?
- Android Gradle DexException: Multiple dex files define Lorg/hamcrest/Description
- Import an eclipse android project with version control system into Android Studio
- Android build gradle is too slow (Dependency Resolution)