Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NDK Resolution Outcome: Project settings: Gradle model version=5.1.1, NDK version is UNKNOWN [duplicate]

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.

like image 794
Antonio Villalobos Avatar asked Aug 22 '19 20:08

Antonio Villalobos


People also ask

How to change project NDK version?

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.

How do I add NDK to gradle?

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.

What version of NDK do I have in flutter?

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.


1 Answers

Upgrading your build from Gradle 5.1.1 to 5.4.1+ ,and I solve it.

like image 177
jiong103 Avatar answered Sep 18 '22 08:09

jiong103