import old gradle project into new android studio version

12,432

As the issue requires some more description adding some points here.

Do the mentioned below along with the answer here

https://stackoverflow.com/questions/21294417/gradle-version-1-8-is-required-current-version-is-1-9/21301099#21301099

Download the latest build-tools from Android SDK Manager, Its is 19.0.1 as of now.

Now change

buildToolsVersion "17.0.0"

to

buildToolsVersion "19.0.1"

In your build.gradle file and do sync your project with gradle.

Share:
12,432
Qpa
Author by

Qpa

Updated on June 13, 2022

Comments

  • Qpa
    Qpa about 2 years

    So after a fresh OS install I installed the newest Version of Android Studio and tried to import an old project.

    If I try to build it i get the message:

    Failed to refresh Gradle project '<name>' Gradle version 1.6 is required. Current version is 1.9.  Please fix the project's Gradle settings. Gradle settings
    

    Ok it isn't downwards compatible but how i fix it? Why it does no automatically build with the newest version?

    If i look up the Gradle Settings the Service directory Path is the C:/Users//.gradle and under ./.gradle there are several directorys with 1.6 and 1.9 folders.

    Can any one give me the hint?

    kind regards and thanks in advance

  • Qpa
    Qpa over 10 years
    Thanks. I also changed the compileSdkVersion to 19 and synced. Now it is working. Thanks