You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will leave this ticket open and pinned for visibility. Any opened issues regarding this can me marked as duplicated and linked to this.
miquelbeltran
changed the title
Common compilation issues (e.g. error: invalid source release: 17)
"error: invalid source release: 17" and other compilation issues
May 28, 2024
If you are facing a compilation error similar to this:
1. Upgrade and clean project
flutter upgrade
flutter pub upgrade
flutter clean
2. Check project requirements
You can find them in the packages
README.md
.For example:
Check that your project is using Java 17.
Run
flutter doctor -v
and find the Android section, for example:3. Upgrade Android Studio
To ensure that you are using the right OpenJDK Java version, install the latest version of Android Studio, and perform a
flutter clean
.4. If nothing else works:
Note
If compilation errors persist after following this guide, please search on Stack Overflow or Google before creating a new issue ticket.
If all the above fails, then create a compilation error ticket using this template: Compile Error Template
The text was updated successfully, but these errors were encountered: