Following is the build.gradle code in Android Studio
apply plugin: \'com.android.application\'
android {
compileSdkVersion 23
buildToolsVersion \"23
For me, this issue arose due to an incompatible combination of plugin and gradle.
I added these to the code to have it working:
Main build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
Main gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip