2
votes

I am trying to execute android project in android studio then i face this error

Gradle version 1.10 is required. Current version is 2.2.1. If using the gradle wrapper

this is my wrapper properties :

distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip

and gradle file:

' classpath 'com.android.tools.build:gradle:0.12.+''

I had already tried

'gradle:0.12.2, >gradle:0.13.+' >gradle:0.11..+''
but still error occurs.. Please help me...

1

1 Answers

0
votes

In my opinion you should:

  1. Upgrade your Android Studio by checking updates (can be annoying, especially if your running versions older than 1.0.0)
  2. Upgrade your project, using this line:

    classpath 'com.android.tools.build:gradle:1.0.0'
    
  3. If present, replace the line

        runProguard false (or true)
    

    with

        minifyEnabled false (or true)
    

within buildTypes / release in your build.gradle file.

  1. Sync your project and see if it works.

If you can't figure out what's wrong I would try:

  • building a new project with your new version of AS;
  • uninstalling Android Studio and reinstalling from scratch (be sure not to delete your entire Android SDK)

Last option worked with me at the time.