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

Update Dockerfile (Adds Java dependencies to fix compilation error) #320

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

bollafa
Copy link
Contributor

@bollafa bollafa commented Jan 3, 2025

When compiling custom Flutter builds, the process may fail towards the end, with an error indicating a missing Java binary. For reference, here’s the error message:

Missing java

This issue occurred while compiling for the x64 architecture using the following snapshot hash and commit:
sudo docker run -e WAIT=4 -e x64=1 -e arm=0 -e arm64=0 -e HASH_PATCH=d20a1be77c3d3c41b2a5accaee1ce549 -e COMMIT=f6344b75dcf861d8bf1f1322780b8811f982e31a --rm -iv${PWD}:/t reflutter

To address this issue, I added Java dependencies to the Dockerfile. This ensures that the necessary Java binaries are available during compilation, preventing the error from occurring.

Adds Java JDK and JRE during Docker build so that compilation of custom flutter builds works successfully.
@jayluxferro jayluxferro self-requested a review January 3, 2025 19:25
@jayluxferro jayluxferro merged commit ecf964c into Impact-I:main Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants