In the continuing adventures of Android Studio and app development, I ran into yet another error while trying to import someone else’s work off of github:
[CODE]
Error:Gradle version 2.2 is required. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /home/alaskalinuxuser/AndroidStudioProjects/android_packages_apps_Trebuchet/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip.
Please fix the project’s Gradle settings.
[/CODE]
Sounds simple enough. So I opened /home/alaskalinuxuser/AndroidStudioProjects/android_packages_apps_Trebuchet/gradle/wrapper/gradle-wrapper.properties and this is what I saw:
[CODE]
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
[/CODE]
Which I edited to say:
[CODE]
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
[/CODE]
However, that was apparently not enough. It still didn’t work and said that the project did not have a gradle, and should be migrated to it. Odd…. I still haven’t figured out this one.
Linux – keep it simple.