Android Studio 1.1 Gradle 2.2.1 Gradle version 2.1 required current version is 2.2.1 -
i trying compile latest version of u2020-daggr2 in android stu![e imported gradle project. error complaining gradle! did edit gradle-wrapper.properties. rebuilding did not work. did see: gradle 2.1 required migrate gradle wrapper , sync project seems same issue on studio did not find:
settings -> gradle , click use default gradle wrapper (recommended).
i did not find in studio. first off there no menu says setting. there : file->other setting->default setting. nothing gradle vm parameters etc. nothing using default gradle wrapper. need have local copy of gradle 2.1 work? ![enter image description here][4]
gradle wrapper.properties edited such: distributionurl=https://services.gradle.org/distributions/gradle-2.1-all.zip
error:(20) problem occurred evaluating root project 'u2020-dagger2'.
failed apply plugin [id 'com.android.application'] gradle version 2.1 required. current version 2.2.1. if using gradlewrapper, try editing distributionurl in /users/mac1/downloads/u2020-dagger2 /gradle/wrapper/gradle-wrapper.properties gradle-2.1-all.zip
you have use gradle-plugin in build.gradle
classpath 'com.android.tools.build:gradle:1.1.0'
android studio 1.1.0 requires:
gradle 2.2.1 (you can set value in
gradle-wrapper.properties
)gradle plugin 1.0.0/1.1.0 (you can set value in
build.gradle
)
Comments
Post a Comment