Making an Android chess app….

begginerchess

Lately I’ve been amusing myself in my spare time by learning how to make a chess engine. I don’t want anyone to think that I came up with this on my own, I’m taking a tutorial through Youtube videos by a man called Logic Crazy. Be sure to check out the link for his tutorial, I’ve found it to be fun and informative!

Logic Crazy seems to have a website with several other variants of chess engines, as well as engines for a couple of different games. And that is also worthy of a good long look. For myself, I’m just trying to learn the basics of Java programming.

Logic Crazy’s design is for an actual Java program to be run on your computer. I on the other hand, am adapting it for an app to be used on an Android phone, which I’m hoping will be fun, but also a great learning experience. My free time is a little bit limited these days, but hopefully you’ll be seeing more posts about it soon.

Linux – keep it simple.

Error:Gradle version 2.2 is required

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.