When I first downloaded flutter I ran into many problems trying to build the project. After trying maybe 10 different solutions, it started working after wiping the data of the emulator. Now we have a github project and im running in to the same problem again, tried wiping the data this time aswell but did not fix it. Anyone that has an idea of what the problem might be? Flutter doctor does not pinpoint any problems either, so now im completely lost. Im using a MacBook Pro M1, and running flutter on Android Studio.
Always get this error message:
`FAILURE: Build failed with an exception.
A problem occurred configuring project ':app'. Could not open proj generic class cache for build file '/Users/artinmohseni/AndroidStudioProjects/hoothoot/android/app/build.gradle' (/Users/artinmohseni/.gradle/caches/7.5/scripts/7i09q508vyjnbbjmnetph6qch). > BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 64
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.
BUILD FAILED in 695ms Exception: Gradle task assembleDebug failed with exit code 1`
Ive used different versions of gradle builds, different java versions, wiped data of the emulators, but no success this time. Somehow when I clone the working project, that I somehow fixed, and then rename it to the project I want to create, create a new flutter project and overwrite it it somehow starts working. But when I clone the repo project it does not work.