First of all, I read all the other solutions messages and so far no one has worked. and I use Android Studio 2.0
Error: Error: (27, 0) Gradle DSL method not found: 'classpath ()' Possible causes:
The Sailu'sFood project may use a version of Gradle that does not contain this method. Open the Gradle Shell File The Gradle plugin may not be in the build file. Apply Gradle Plugin
here build.gradle (app):
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.example.kandarp.food" minSdkVersion 21 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' classpath 'com.google.gms:google-services:2.0.0-alpha6' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.google.android.gms:play-services-analytics:8.4.0' compile 'com.google.android.gms:play-services-ads:8.4.0' } apply plugin: 'com.google.gms.google-services'
here build.gradle (top level):
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0' } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } apply plugin: 'project-report' apply plugin: 'application'
It would be great if someone could indicate what kind of error
source share