Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade to older version of Gradle

I have in my .gradle folder, a 2.4 folder which is the version of gradle. I want to downgrade to 2.2.1, because I need to use Gradle plugin 1.0.1. I already try to change by:

distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip

But this did not solve the issue and I'm still with 2.4 version.

How can I solve this?

like image 433
WitaloBenicio Avatar asked Nov 24 '15 11:11

WitaloBenicio


People also ask

How do I downgrade Gradle version in Intellij?

Open "gradle-wrapper. properties" and change the place where it says "3.3" to "2.14. 1".


1 Answers

Change your gradle version in project setting: If you are using mac,click File->Project structure,then change gradle version,here: enter image description here

And check your build.gradle of project,change dependency of gradle,like this:

buildscript {     repositories {         jcenter()     }     dependencies {         classpath 'com.android.tools.build:gradle:1.0.1'     } } 
like image 179
starkshang Avatar answered Sep 19 '22 13:09

starkshang