Android Studio Error:(19, 0) Gradle DSL method not found: android()


Error:(19, 0) Gradle DSL method not found: 'android()'

Possible causes: The project 'Example' may be using a version of the Android 
Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).

Fix plugin version and sync project
The project 'Example' may be using a version of Gradle that does not contain the method.
The build file may be missing a Gradle plugin.

Apply Gradle plugin
Solution:

Just remove the following code from build.gradle file

android {
    compileSdkVersion 'android-MNC'
    buildToolsVersion 'xx.x.x'
}
dependencies {
}


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap