Open File In header section of Android Studio. Then Select settings from the File menu After That Select Languages & frameworks from the left panel Select Flutter Then the right panel choose the location of your flutter SDK Set Flutter SDK path there. Now your error must be solved.