Fixing GradleVersion for class: JetGradlePlugin

Recently I came across this message while opening an android project.

After some searches I found that this was being caused by an incompatible gradle version.

So, here’s what I did:

  • Open the
  • Comment the old distributionUrl (on version 5.6)
  • Add the new distributionUrl as indicated on step 2)
  • Then click sync gradle button as shown on 3)

That’s it. You after sync is completed you should be able to see the following on your gradle console.

Hope it helps.

Since I use local gradle distributions and this project is actually a cordova project, I also updated my ~/.bash_profile to include this line:

export CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL=file:///Users/MyUserName/DevDeps/gradles/

Gradle releases can be found here

Leave a Reply

Close Menu