Skip to content

Instantly share code, notes, and snippets.

@eseidel
Created February 3, 2023 17:42
Show Gist options
  • Save eseidel/e6a0fd10d2b513b45c39b4742f0ec448 to your computer and use it in GitHub Desktop.
Save eseidel/e6a0fd10d2b513b45c39b4742f0ec448 to your computer and use it in GitHub Desktop.
`flutter build apk` failure on brand new `flutter create`
PS C:\Users\micro\Documents\GitHub\shorebird_private\shorebird\examples\hotswap> flutter build apk
Running "flutter pub get" in hotswap... 801ms
Building with sound null safety
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\micro\Documents\GitHub\shorebird_private\shorebird\examples\hotswap\android\settings.gradle' (C:\Users\micro\.gradle\caches\7.4\scripts\ea4ydi90mwjg9g63m7r6nimmx).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Running Gradle task 'assembleRelease'... 3.4s
Gradle task assembleRelease failed with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment