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

Fix for Android Example Project Gradle Issues #1661

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vicajilau
Copy link

Summary

The Android directory in the example project was found to have outdated Gradle configurations, preventing compatibility with newer versions of Java and causing build issues. To resolve this, the Android folder was removed and regenerated using Flutter's CLI tool.

Steps Taken

  1. Remove the existing Android folder from the example project.
  2. Regenerate it with the following command:
    flutter create --platforms=android .
    

Steps Taken

  • Java Compatibility: The regenerated Android project now compiles successfully with newer versions of Java, ensuring compatibility with Java 21 and beyond.
  • Gradle Version Alignment: The updated project uses a modern Gradle version that aligns with Flutter's latest tooling, as described in The Flutter and Java 21 Mystery.
  • Improved Build Process: This fix not only resolves compatibility issues but also modernizes the Gradle setup for better stability and alignment with best practices.

Conclusion

The changes provide a more robust and forward-compatible configuration for the example project's Android build.

image

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.

1 participant