androidandroid-studiogradleandroid-gradle-pluginshortcut

How to update Gradle in Android Studio?


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.


Solution

  • Step 1 (Use default gradle wrapper)

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

    Android studio settings Gradle Wrapper

    Changing to Gradle Wrapper in the new version of Android Studio: Android Studio Setting Gradle Wrapper new version

    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.2 (March 2021):

    Android Gradle Plugin version: 4.1.2
    Gradle version: 6.5
    

    Official links