Problem with gradle: cannot compile Android app.

I haven’t tried to compile the Syncthing Android app in many commits (~150), and now that I’ve pulled the latest and greatest, my environment is broken. I was able to install the lastest Android SDK 21, but now I am getting the following error:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/anaqreon/src/github.com/syncthing-android/build.gradle' line: 18

* What went wrong:
A problem occurred evaluating root project 'syncthing-android'.
> com/github/benmanes/gradle/versions/VersionsPlugin : Unsupported major.minor version 51.0

I’m on commit 73783cb9a39406738b3d287082328c702a64d0b2. Any ideas?

What command are you using to build?

./gradlew assembleDebug should work fine.

That was the primary problem, thanks. Next, I needed to install 400 EiB of updates to gradle, Android SDK, and all sorts of other things. Sheesh.

If you don’t want updates, you should probably use C or C++ :stuck_out_tongue: