Smartphone (please complete the following information):
OS: Archcraft x86_64
Kernal: 5.12.10-arch1-1
Additional context
just_another_workout_timer git:(main) sudo flutter build apk
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
📎
💪 Building with sound null safety 💪
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file '/home/slok/just_another_workout_timer/android/settings.gradle' (/root/.gradle/caches/6.7/scripts/f0emg6u6oecmxqzgk5g9nn4ui).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60
* 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 586ms
Running Gradle task 'assembleRelease'... 1,080ms
Gradle task assembleRelease failed with exit code 1
Why are you using sudo to build? You shouldn't need to. If you are getting permission errors otherwise, you shoud fix these instead and not rely on sudo.
Describe the bug Error when building from source.
To Reproduce Steps to reproduce the behavior:
Expected behavior Build apk file.
Smartphone (please complete the following information):
Additional context