Thank you for your insights. I renamed the metadata file according to the right package name.
The “checkupdates” task still failed. I removed “submodules” because I dont use it. Also, I did some tries with the “CurrentVersion” and “CurrentVersionCode” (trying to set them < the Builds number) => did not work.
I look at the “fdroid build” task and saw issues with sourceCompatibility in build.gradle : by default, Android Studio use VERSION_1_8 but the task complains about “Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8” . I changed it on the source repo, but the task still have the same error. I saw a similar problem here, will have a look.
The “lint” task also is in error, but the log do not contains usefull information.