ndk.dir error in Android Studio
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was trying to use opencv library, so I imported one of its projects in Android Studio and when I tried to run it I got this error: Error:Execution failed for task ':openCVSamplefacedetection:compileDebugNdk'. NDK not configured. Download the NDK from http://developer.android.com/tools/sdk/ndk/.Then add ndk.dir=path/to/ndk in local.properties. (On Windows, make sure you escape backslashes, e.g. C:\ndk rather than C:\ndk) So I downloaded the ndk and I addes this line to the local.properties file where it became: sdk.dir=C\:\\Users\\skoon\