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,
- Error running 'app': No target device found.
- How to save IntelliJ IDE Console logs to external log file
- Android Studio : Implement abstract methods shortcut
- Android Studio Error:(19, 0) Gradle DSL method not found: android()
- Android [SDK Manager] The system cannot find the path specified
- [Solution] Android Studio does not displays Toolbar in Layout Design
- [Android Studio] failed to find Build Tools revision 23.0.0 rc1
- [Android Studio] Hardcoded string Button, should use @string resource
- JDK Location in Android Studio
- Android Studio : Connection Error : Failed to download patch file
- Your Android SDK is missing, out of date or corrupted SDK Problem
- Cannot start Android Studio. No JDK found
- Android Studio : Build Tools 23.0.0 rc1 is deprecated
- Android Studio emulator/Device logCat logs not displayed
- Delete Android Studio Projects
- Android Studio : Change FAB icon color : FloatingActionButton
- How to install Android Studio Chipmunk and SDK tools on macOS (2021.2)
- Building library Gradle Project Info: Downloading services.gradle.org
- [Android Studio] Could not automatically detect an ADB binary
- The package must have at least one . separator [Android Studio]
- Create assets folder in Android Studio
- How to remove Floating Action Button Android Studio Blank Activity Template
- [Event Log] Android Studio performance could be improved
- The selected device is incompatible : Android Studio
- Disabling Spell Check in Android Studio
More Posts:
- INSTALL_FAILED_INSUFFICIENT_STORAGE Error Android Emulator - Android
- Error:The SDK Build Tools revision (XX.X.X) is too low for project. Minimum required is XX.X.X - Android
- How to start/boot macOS in safe mode - Big Sur 11.0, Catalina 10.15, or Mojave 10.14 - MacOS
- Page actions are temporarily disabled [Google Search Console Page Crawling] - Google
- Android : How to make TextView Scrollable - Android
- How to check RAM details on Mac? - MacOS
- Access Windows share folder in Ubuntu Device in Network - Ubuntu
- Error running 'app': No target device found. - Android-Studio