Hi everyone! So since I was following a course th...
# community-support
j
Hi everyone! So since I was following a course that is 4 years old, the versions of gradle, dart and flutter changed. I tried downloading the Git project. - everything good and fine. But then I encountered the error of the gradle version not being correct to my Java version ( it was 7.0.2 and I changed to 8.10, Java version is 23.02). Now, I keep having all those errors starting from the wrong version of gradle. I have two questions: 1. should I probably downgrade? or is it okay to upgrade? what is the correct way to upgrade? 2. I am stuck on this error currently and I tried following the flutter docs suggestions but my project has none of that code I would need to change FAILURE: Build failed with an exception. * Where: Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 9 * What went wrong: A problem occurred evaluating script.
You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is not possible anymore. Migrate to applying Gradle plugins with the declarative plugins block:
v
You should probably ask this in some Flutter community? 🙂
✅ 1