android – How can i fix my flutter build.gradle cannot resolve symbol error?-ThrowExceptions

Exception or error:

I tried upgrading both my flutter and Dart SDK.
I tried also switching the IDE, but nothing changed.
What shall i do?

enter image description here

How to solve:

You can try two things:

1 – Update
Go to android/build.gradle and try replace ext.kotlin_version and dependencies with these values:

 buildscript {
    ext.kotlin_version = '1.3.50'

    dependencies {
        classpath ''

2 – Set ANDROID_HOME environment to your Android SDK location (commonly C:\Users{YOUR_USER}\AppData\Local\Android\Sdk)

If doesn’t help, please, post your fully exception in the question

Leave a Reply

Your email address will not be published. Required fields are marked *