How to update gradle in android studio?

7heViking picture 7heViking · Jul 18, 2013 · Viewed 733.2k times · Source

I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this message:

Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.5.0. Please update the version of the dependency 'com.android.tools.build:gradle'

How do I do that? I can't find any update tools for the gradle plugin in android studio.

Answer

vovahost picture vovahost · Feb 8, 2016

Step 1 (Use default gradle wrapper)

FileSettingsBuild, Execution, DeploymentBuild Tools→GradleUse default Gradle wrapper (recommended)

Android studio settings Gradle wrapper

Step 2 (Select desired gradle version)

FileProject StructureProject

Android Studio project structure

The following table shows compatibility between Android plugin for Gradle and Gradle:

Compatibility table

Latest stable versions you can use with Android Studio 4.1.1 (November 2020):

Android Gradle Plugin version: 4.1.1
Gradle version: 6.5

Official links