Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F-Droid build failed #470

Open
linsui opened this issue Nov 4, 2023 · 11 comments
Open

F-Droid build failed #470

linsui opened this issue Nov 4, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@linsui
Copy link
Contributor

linsui commented Nov 4, 2023

https://monitor.f-droid.org/builds/log/dev.lucanlm.antimine/1705061#site-footer Could you please take a look? Thanks!

@linsui linsui added the bug Something isn't working label Nov 4, 2023
@lucasnlm
Copy link
Owner

lucasnlm commented Nov 6, 2023

@linsui I just released a new version. I hope it fixes the build.

@linsui
Copy link
Contributor Author

linsui commented Nov 6, 2023

https://gitlab.com/linsui/fdroiddata/-/jobs/5464389590 The build still fails.

@lucasnlm
Copy link
Owner

lucasnlm commented Nov 6, 2023

@linsui @licaon-kter Is there any way to reproduce the F-droid build script locally? It would be helpful.

@licaon-kter
Copy link

licaon-kter commented Nov 6, 2023

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

@lucasnlm
Copy link
Owner

lucasnlm commented Nov 7, 2023

@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

@licaon-kter
Copy link

> 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

@lucasnlm
Copy link
Owner

lucasnlm commented Nov 8, 2023

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.

@linsui
Copy link
Contributor Author

linsui commented Nov 8, 2023

Fixed, thanks!

@linsui linsui closed this as completed Nov 8, 2023
@linsui linsui reopened this Jul 8, 2024
@lucasnlm
Copy link
Owner

lucasnlm commented Jul 8, 2024

Thanks for letting me know. I bumped android SDK. I will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants