when I’m adding this snippet in app level gradle file
apply plugin: 'com.google.gms.google-services'
I am facing error “Plugin with id ‘com.google.gms.google-services’ not found.” . Can you please help me out!
add this classpath in dependencies in project level build.gradle file.
classpath 'com.google.gms:google-services:4.3.3'
replace 4.3.3 with whatever latest version availble and then click on sync now to sync gradle files. Hope this will remove the error.
your project level build.gradle file will look similar to
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.4.2' classpath 'com.google.gms:google-services:4.3.3' //add thin line // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }