Make sure that your Android Studio > Tools > SDK Manager > Flutter is pointing to the correct tools that you're using (e.g. fvm list if you're using fvm. Fixing the tools resolved this problem for me.
fvm list