Skip to content
Fix Code Error

How to update gradle in android studio?

March 13, 2021 by Code Error
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)

Android studio settings Gradle wrapper

Step 2 (Select desired gradle version)

File→Project Structure→Project

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

  • 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

Related Articles

  • Gradle error: Execution failed for task…
  • org.gradle.api.tasks.TaskExecutionException: Execution…
  • npm install error in vue
  • Jetpack Compose and Hilt Conflict
  • Execution failed for task ':app:compileDebugJavaWithJavac'…
  • Android- Error:Execution failed for task…
  • Gradle: Execution failed for task ':processDebugManifest'
  • Maven2: Missing artifact but jars are in place
  • Error:Execution failed for task…
  • Aurelia bundling issue with virtual directory

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How can I run a program from a batch file without leaving the console open after the program starts?

Next Post:

“Unicode Error “unicodeescape” codec can’t decode bytes… Cannot open text files in Python 3

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Get code errors & solutions at akashmittal.com
© 2022 Fix Code Error