I tried many solutions in stackoverflow, but no one worked for me. When I synchronize the project, it gives Error:(2, 0) Plugin with id 'com.google.gms.google-services' not found
As the documentation says (add the plugin at the end), I did the same. Added plugin at the end. apply plugin: 'com.google.gms.google-services'
Any solution? I followed this link. The same as it was said, but there is an Error.
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.radioaudio.motivationalaudios" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile files('libs/YouTubeAndroidPlayerApi.jar') compile 'com.google.firebase:firebase-ads:9.4.0' } apply plugin: 'com.google.gms.google-services'
source share