What you can do is:
C:\Users\<your_user>\AppData\Local\Android\Sdk\ndk
<project_directory>\android\local.properties
file by changingndk.dir
value to the version you get in step 1. If ndk.dir
is absent, add ndk.dir=<your_version>
to the file.flutter.ndkVersion
to the same version in <flutter_dir>\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy
file.