Build fails with JDK 11.0.23 and gradle 8.9

Lorenzo10 months 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 Tananaev10 months ago

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

Lorenzo10 months ago

Thanks a lot Anton.

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

Anton Tananaev10 months ago

What command are you running?

Lorenzo10 months ago
$ ./gradlew assemble
Anton Tananaev10 months ago

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

Lorenzo10 months ago

yes I am sure. Just clone and build.

Anton Tananaev10 months ago

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

Lorenzo10 months ago

Yes. I am quite sure as well.

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