I am able to run my code in the browser but when I running it on my mobile then it throughs me an error. This code is totally given by the flutter system I am not change anything. When I run this demo code in my terminal it gives me the below error. Help me to solve this issue.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\smrut\Desktop\vsflutter\demoproject\android\build.gradle'
* What went wrong:
Could not compile build file 'C:\Users\smrut\Desktop\vsflutter\demoproject\android\build.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60
1 error
* 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