flutterbuildandroid-ndk

Flutter: build ndk version mismatch after upgrade


My flutter app could build fine before, but after updating Android Studio and Flutter today I get the following error when trying to build: "No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669". How can this error be solved?


Solution

  • The NDK version 20.0.5594570 can be install manually by going into android studio -> SDK manager -> SDK tools. Select the show package detail checkbox.

    You will be able to see all the NDK versions available.

    More details: https://developer.android.com/studio/projects/install-ndk