Update Dockerfile (Adds Java dependencies to fix compilation error) #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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.