You can specify your needed ndk version in build gradle file inside app (android/app/build.gradle)
android { // ... other config ndkVersion "27.0.12077973" }
then just do flutter clean and flutter pub get.