I have recently migrated from Eclipse to Android Studio. I am facing some problems regarding Gradle.
I tried to import this project from github: https://github.com/saulmm/Android-Material-Example, but got this error message:
Error:(16, 0) Gradle DSL method not found: 'runProguard()' Possible causes:
The project 'Android-Material-Example-master' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file The build file may be missing a Gradle plugin. Apply Gradle plugin
This is my build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
jcenter()
} }
And this is my gradle-wrapper.properties
#Wed Apr 10 15:27:10 PDT 2013 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
I can't find runProguard()
they are talking about! Any solutions?