F-Droid build failed
https://monitor.f-droid.org/builds/log/dev.lucanlm.antimine/1705061#site-footer Could you please take a look? Thanks!
@linsui I just released a new version. I hope it fixes the build.
https://gitlab.com/linsui/fdroiddata/-/jobs/5464389590 The build still fails.
(https://gitlab.com/fdroid/fdroiddata/-/jobs/5468271156#L1516) hence https://gitlab.com/fdroid/fdroiddata/-/commit/774d637b14906407288f37928820495742cd0da0
@linsui @licaon-kter Is there any way to reproduce the F-droid build script locally? It would be helpful.
It's all there in the link above :)
rm -fr proprietary app/gradle
sdkmanager 'cmake;3.22.1'
cd app
sed -i -e "/:proprietary/d" ../settings.gradle build.gradle
sed -i -e '/gms/d' -e '/firebase/d' {.,..}/build.gradle
gradle clean
gradle assembleFossRelease
@licaon-kter Please, can you please replace in the build script following line?
sed -i -e '/gms/d' -e '/firebase/d' {.,..}/build.gradle
by:
sed -i -e '/bugsnag/d' -e '/gms/d' -e '/firebase/d' {.,..}/build.gradle
> Task :app:mergeFossReleaseJavaResource
> Task :app:minifyFossReleaseWithR8
WARNING: /home/vagrant/build/dev.lucanlm.antimine/app/build/intermediates/merged_java_res/fossRelease/mergeFossReleaseJavaResource/base.jar: R8: Unexpected reference to missing service class: META-INF/services/javax.annotation.processing.Processor.
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /home/vagrant/build/dev.lucanlm.antimine/app/build/outputs/mapping/fossRelease/missing_rules.txt.
ERROR: R8: Missing class javax.annotation.processing.AbstractProcessor (referenced from: void com.google.auto.service.processor.AutoServiceProcessor.<init>() and 1 other context)
Missing class javax.annotation.processing.SupportedOptions (referenced from: com.google.auto.service.processor.AutoServiceProcessor)
> Task :app:minifyFossReleaseWithR8 FAILED
> Task :app:lintVitalAnalyzeFossRelease
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:minifyFossReleaseWithR8'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
> Compilation failed to complete
It was another error on my side.
I just released a new version to fix that.
With the sed -i -e '/bugsnag/d' -e '/gms/d' -e '/firebase/d' {.,..}/build.gradle change it should work now.
Fixed, thanks!
Do reopen: https://gitlab.com/fdroid/fdroiddata/-/jobs/7281022527
/LE: fyi https://gitlab.com/fdroid/fdroiddata/-/commit/f2a2c69e337e1fa0a223f5f26ca0018a8a2d78fd
Thanks for letting me know. I bumped android SDK. I will fix.