How to update gradle in android studio?
Posted By: Anonymous
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)
File→Settings→Build, Execution, Deployment→Build Tools→Gradle→Use default Gradle wrapper (recommended)
Step 2 (Select desired gradle version)
File→Project Structure→Project
The following table shows compatibility between Android plugin for Gradle and Gradle:
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
- Version Compatibility
- Migrate to Android Plugin for Gradle 3.0.0
- Find out the latest version of Gradle
- Info about the Gradle Wrapper
Answered By: Anonymous
Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.