Go to :
Android studio > Settings > SDK Manager > Languages & Frameworks > Android SDK
then choose "SDK Tools"
You just need to install the NDK from android studio for the same package in your flutter app which is "26.3.11579264", by doing the following
Make sure to:
Check "Show Package Details" otherwise android studio will install the latest package version
Uncheck Hide Obsolete Packages
Then install the following :
NDK(Side by side) (The package number as in the error "26.3.11579264")
CMake (I think you can install any version, idk)
NDK(Obsolete)
And you are done
Here is the GitHub issue where the answer is inspired by
https://github.com/rive-app/rive-flutter/issues/320#issuecomment-2586331170