I installed the latest version of Android Studio and it started to give me problems when adding new libraries telling me that the NDK version is unknown but I installed the latest version of NDK and the problem is not solved.
You can pick a specific version of the NDK to use in your project by setting android. ndkVersion in your build. gradle. if you don't, it'll try to use the default version for the Gradle plugin that you're using.
Install a specific version of the NDKWith a project open, click Tools > SDK Manager. Click the SDK Tools tab. Select the Show Package Details checkbox. Select the NDK (Side by side) checkbox and the checkboxes below it that correspond to the NDK versions you want to install.
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.
Upgrading your build from Gradle 5.1.1 to 5.4.1+ ,and I solve it.
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