mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

Unable to detect installed NDK #29

Open NoraCodes opened 4 years ago

NoraCodes commented 4 years ago

I have tried both the NDK and NDK (side by side) options in the SDK manager but keep getting

A problem occurred configuring project ':app'.
> NDK is not installed
TheBats commented 4 years ago

I fixed the same problem using the solution found on stack overflow.

It basically says that in android studio 3.6+ you have to add the ndk in your grandle.build app module.

android {
    defaultConfig {}

    buildTypes {}

  ->  ndkVersion "21.0.6113669"
}

Maybe it will fix yours

OliverCulleyDeLange commented 4 years ago

In my case, i had two installations of android sdk. One via android studio, and one via brew (that i wasn't aware of). Uninstalling the brew one, and making sure sdk/tools/bin was on my path fixed it.