Build fails with JDK 11.0.23 and gradle 8.9

Lorenzoa year ago

Hi all.

I've cloned the github official traccar repository.

Unfortunately the build process fails because of the following error.

gradle.jpg

Please, could you tell me how to fix my problem in order to proceed?

Thanks a lot.
BR,
Lorenzo

Anton Tananaeva year ago

You have to use Java 17 and the provided gradle wrapper.

Lorenzoa year ago

Thanks a lot Anton.

I did, but have still the same problem.
gradle2.png

Anton Tananaeva year ago

What command are you running?

Lorenzoa year ago
$ ./gradlew assemble
Anton Tananaeva year ago

It's working for me. Are you sure you haven't changed anything?

Lorenzoa year ago

yes I am sure. Just clone and build.

Anton Tananaeva year ago

Then I suspect you either have some network issues or some broken global gradle configuration.

Lorenzoa year ago

Yes. I am quite sure as well.

Anyway thanks a lot Anton. I am going to understand more deeply.