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 {
}



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.