After updating Android Studio and Gradle to 3.5, I now get this error:
NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN
I changed the Gradle version in build-gradle back to 3.4.2 but it didn't help.
Once the Project Structure Dialog is open, go to SDK Location and select your locally installed version of NDK under Android NDK Location. Typically this is installed somewhere in your user folder then \AppData\Local\Android\Sdk\ndk\%ndk version% at least for Windows.
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.
Select the menu File > Project Structure > SDK Location , Android NDK Location if it is not set yet, then click ... , and browse to your NDK location and click "OK" (you may also choose "download"). Once you set once. If will by default use the settings for Ndk location for the all your android projects too.
I had similar problem and solved it by opening project using Import project (Gradle, Eclipse, etc.)
instead of Open existing Android Studio project
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With