I am new to Flutter/coding. I am trying to work on my first project. I am following an online tutorial to create a weather app. I followed all the instructions but when I am running the app, nothing shows up on my emulator. There is an error on the Debug Console as below:

I tried to google the error and found that I need to update the kotlin version in the buildscript in the build.gradle file. But in my build.gradle file there is no buildscript section. See below:

I again googled for solution and I thought what if I add the code in my build.gradle file so I added the code with latest kotlin version 1.9.22 yet the error is still there.
Where am I going wrong.
I tried all solutions available in youtube and google. I have spent almost a day looking for it but no luck.
- I am running it on a windows 10, android emulator.
Источник: https://stackoverflow.com/questions/780 ... dle-plugin
Мобильная версия