import old gradle project into new android studio version
As the issue requires some more description adding some points here.
Do the mentioned below along with the answer here
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.
Qpa
Updated on June 13, 2022Comments
-
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 over 10 yearsThanks. I also changed the compileSdkVersion to 19 and synced. Now it is working. Thanks