NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN error

I had similar problem and solved it by opening project using Import project (Gradle, Eclipse, etc.) instead of Open existing Android Studio project.


You can download NDK from File>Project Structur>Choosing SDK location from left panel and pressing Download from NDK location part.


I was having the same issue after upgrading my android studio. You just need to open local.properties & change ndk.dir path to your NDK path.

Code:

ndk.dir=D\:\\Android\\SDK\\ndk-bundle
sdk.dir=D\:\\Android\\SDK