Android Studio 1.1 Gradle 2.2.1 Gradle version 2.1 requires current version 2.2.1

I'm just trying to compile the latest version of u2020-daggr2 in Android stu! [e I imported it as a gradle project. But I get an error complaining about gradle! I edited gradle -wrapper.properties. However, the recovery did not work. I saw: Gradle 2.1 required Migration to gradle wrapper and synchronization project , which seems to be the same problem, but in Studio I did not find:

Settings -> gradle and click Use default shell gradle (recommended).

I did not find where to do this in Studio. Firstly, there is no menu that just says “Settings”. There is: File-> Other Setting-> Default Setting. But nothing but gradle vm options, etc. Nothing about using the default gradle wrapper. enter image description hereDo I need to have a local copy of gradle 2.1 for this? enter image description here! [enter image description here] [4] enter image description here

Gradle wrapper.properties edited as such: distributionUrl = https://services.gradle.org/distributions/ gradle -2.1-all.zip

Error: (20) There was a problem evaluating the root project "u2020-dagger2".

[id 'com.android.application'] gradle 2.1. - 2.2.1. gradlewrapper, Url /Users/Mac 1/Downloads/u2020-dagger2/ gradle/wrapper/gradle-wrapper.properties gradle -2.1-all.zip

+4
2

gradle -plugin build.gradle

classpath 'com.android.tools.build:gradle:1.1.0'

Android Studio 1.1.0 :

  • Gradle 2.2.1 ( gradle-wrapper.properties)

  • Gradle plugin 1.0.0/1.1.0 ( build.gradle)

+5

build.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:1.1.2
}

! , .

+6

All Articles