I had recently made a new project in flutter but there's an error in build.gradle file in VS Code showing {throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")}.
Tried adding SDK path in android studio but it didn't worked also i changed the above error statement to ("throw FileNotFoundException...") it solved the error but my project didn't run on the emulator.
(Do let me know if any other images or anything else is needed from my side.)