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 {
}
More Posts related to Android-Studio,
- Your Android SDK is missing, out of date or corrupted SDK Problem
- Use Netbeans keyboard shortcuts in Android Studio
- Android Studio NoClassDefFoundError: java.awt.Toolkit
- Create assets folder in Android Studio
- Cannot start Android Studio. No JDK found
- Android Studio emulator/Device logCat logs not displayed
- Android Studio : Implement abstract methods shortcut
- Android Studio 4.2 Canary 1 now available
- Error running 'app': No target device found.
- How to Search Something (string) in Android Studio Project like Eclipse
- Android Studio : Connection Error : Failed to download patch file
- How to enable line numbers in IntelliJ Android Studio for all files
- Building library Gradle Project Info: Downloading services.gradle.org
- AVD Pixel_2_API_15 is already running. [Android Studio]
- How to update Android Studio
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1
- Android Studio SDK Build-tools 23 rc2 not getting installed
- The package must have at least one . separator [Android Studio]
- Android activity main xml stuck loading
- Delete Android Studio Projects
- Failed to install Android.apk on device 'emulator-5554': timeout
- Android Studio java.net.NoRouteToHostException
- Eclipse like Auto Import Shortcut in Intelij IDE Android Studio
- Android Emulator window was out of view and was recentered
- How to remove Floating Action Button Android Studio Blank Activity Template
More Posts:
- Android Images with Rounded Corners : ImageView - Android
- Save webpage as pdf in Google Chrome for Mac OS X - Mac-OS-X
- Change SharePoint search results FullTextSqlQuery RowLimit 10000 - SharePoint
- SharePoint Excel error - The workbook cannot be opened because it contains the following features that are not supported by Excel in the browser - SharePoint
- FileZilla Connection time out Failed to retrieve directory listing - FTP
- Tutorial Java SOAP WebServices JAS-WS with Eclipse J2EE IDE and Tomcat Server Part 1 - Java
- Android RatingBar Example - Android
- How to use Content Assist in Eclipse IDE - Eclipse
- List of Java Keywords - Java
- [Solutions] Android Error in an XML file: aborting build. Eclipse SDK - Android
- How to configure PDF iFilter for SharePoint - SharePoint
- Create simple struts2 project using maven commands - Java
- Change Height of Android ActionBar - Android
- How to enable disable SharePoint Developer Dashboard for tracing troubleshooting - SharePoint
- Eclipse: Updating Maven Project. Unsupported IClasspathEntry kind=4 - Eclipse