android - plugin with id not working studio -


i trying add google play services library in android studio.i have added google play services in build.gradle.

but working me.i have referred many post regarding this.but doesn't solved problem.

below posted build.gradle code have added google play services.

enter image description here

build.gradle:

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.2.3'         // note: not place application dependencies here; belong         // in individual module build.gradle files     }      apply plugin : 'android'     dependencies {          compile 'com.google.android.gms:play-services:4.0.30'     }       allprojects {         repositories {             jcenter()         }     }  } 

while adding google play services in dependencies @ gradle compile com.google.android.gms:play-services:4.0.30. getting error:plugin id not working.

anyone can me this.thank you.

the build.gradle have posted seems project configuration. global project build.gradle has buildscript tag , comment not adding application dependencies can seen in question.

there should build.gradle inside app module should find similar depending on version of android studio , gradle,

apply plugin: 'com.android.application'  android {     ... }  dependencies {     ... } 

place compile 'com.google.android.gms:play-services:4.0.30' inside app module's build.gradle depedencies


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -