Asked  7 Months ago    Answers:  5   Viewed   107 times

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 ''

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



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
Tuesday, June 1, 2021
answered 7 Months ago

I use something like this.

I have a in my app root folder.


This file is not on under version control. Of course you can change folder.

Then in your build.gradle you can use something like this:

 android {

        signingConfigs {

        buildTypes {
                release {
                    signingConfig signingConfigs.release

    def Properties props = new Properties()
    def propFile = file('../')
    if (propFile.canRead()){
        props.load(new FileInputStream(propFile))

        if (props!=null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
                props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {

            android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
            android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
            android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
            android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
        } else {
            android.buildTypes.release.signingConfig = null
    }else {
        android.buildTypes.release.signingConfig = null

If you change the folder, you have to change this line:

 def propFile = file('../')
Tuesday, August 10, 2021
answered 4 Months ago

I had the same problem after my studio upgraded from 2.3.3 to 3.0, of course I have upgraded my project gradle plugin version from 2.3.3 to 3.0.

I think the gradle plugin jar file is broken and not readable or any unknow exception happened, so delete it and re-download.

What I propose is to,

  • Delete gradle folder in studio installed path (mine is D:Toolandroid-studiogradle),
  • Re-sync your project. The project will re-download its dependencies.

If the problem is not solved, try to delete your gradle user data (mine is C:Userstea.gradle) and then re-sync project.

Thursday, August 19, 2021
Reiner Gerecke
answered 4 Months ago

Hi you can go through this link this is a complete setup guide.i hope it helps.

Thursday, September 2, 2021
answered 3 Months ago

Just add a new java file in {root project dir}/app/src/androidTest/java/com/company/name

Android Studio will recognize it as AndroidTest.


import android.test.ApplicationTestCase;

 * <a href="">Testing Fundamentals</a>
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
Monday, November 8, 2021
Klausos Klausos
answered 1 Month ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :