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

不羁的心 提交于 2019-12-04 09:52:56

You're using Gradle domain-specific language (DSL) defined in the Android plugin before applying that plugin.

Remove the

android {
compileSdkVersion 19
}

in your top-level build.gradle. You already have compileSdkVersion 20 in your app build.gradle file where it actually matters.

now its showing "Error:(16, 0) Gradle DSL method not found: 'runProguard()'

runProguard was renamed to minifyEnabled in the Android Gradle plugin some time ago. You should rename it in your build script as well.

Not Solved: I'm using gradle-experimental for doing NDK stuff.

Error:(13, 0) Dexcount plugin requires the Android plugin to be configured MY Top level build.gradle file:

buildscript {

repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle-experimental:0.4.0'
}

}

allprojects {

repositories {
    jcenter()
}

}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!