No hash for gradle version

Currently I’m following the “Submitting to F-Droid Quick Start Guide”. Everything works until I run fdroid build com.xy..., where I get the following error:

Found 9.5.0 via distributionUrl
No hash for gradle version 9.5.0! Exiting...

Maybe I’m misunderstanding something, but Gradle version 9.5.0 is listed in the Gradle checksums, and I also checked the gradlew.py file which contains the SHA256 hash for 9.0.0.

My current libs.versions.toml contains:

android-application = { id = "com.android.application", version.ref = "agp" }

agp = "9.0.0"

And my gradle-wrapper.properties looks like this:

distributionSha256Sum=553c78f50dafcd54d65b9a444649057857469edf836431389695608536d6b746
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip

But it still doesn’t work.

Does anybody have a hint what the problem could be? I searched through the wiki and documentation but couldn’t find a solution. Maybe I’m overlooking something.

where did you get fdroidserver from? do clone from gitlab and use fdroid from that one

I did I following the steps at Submitting to F-Droid Quick Start Guide | F-Droid - Free and Open Source Android App Repository

git clone --depth=1 https://gitlab.com/fdroid/fdroidserver ~/fdroidserver
sudo sh -c 'apt-get update &&apt-get install -y docker.io'
sudo docker run --rm -itu vagrant --entrypoint /bin/bash \
  -v ~/fdroiddata:/build:z \
  -v ~/fdroidserver:/home/vagrant/fdroidserver:Z \
  registry.gitlab.com/fdroid/fdroidserver:buildserver

Locally, it does not work when using the cloned repository from F-Droid / fdroidserver · GitLab, but the checks succeed when running them in the GitLab CI pipeline.

That’s why we have the CI :slight_smile: