Build failed Space Trader

Hi.

I am a f-droid fan user and I was playing Space Trader. It is a awesome game (it remembers me to oldies times of Dopewars in command line).

Well, the main repository game is death. But I want to do some changes to add a spanish translation.

And I have been trying to build the game but it failed with the next output:

$ gradle .
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/src/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Gradle version 2.2 is required. Current version is 5.2. If using the gradle wrapper, try editing the distributionUrl in /tmp/src/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 28s

How do you build this game?

Regards.

Repo link? . . . . … . . . .

It looks like the gradle version installed on your system is 5.2, but the project you are trying to compile requires 2.2. You should try using the wrapper instead; gradlew should download the version you need. …but supposing it doesn’t, there is a line in that error message hinting how to fix it :wink:

$ git remote -v
origin Bitbucket (fetch)
origin Bitbucket (push)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.