NDK for AndroidStudio

I am following this page to learn "setting up NDK in androidStudio".

http://www.shaneenishry.com/blog/2014/08/17/ndk-with-android-studio/

But I ran into a problem when I Config ndk with gradle. There is an error message here. is there anybody help me?

Error: (20, 0) Gradle DSL method not found: 'ndk ()' Possible causes:

The My Application project may use a version of Gradle that does not contain this method. Open the Gradle Shell File The build file may not have the Gradle plugin. Apply Gradle Plugin
+6
source share
1 answer

I had this problem and it was solved by following these steps on this blog: http://ph0b.com/new-android-studio-ndk-support/

and looking at the source code of this project: https://github.com/googlesamples/android-ndk/tree/master/hello-jni

I hope this helps.

+1
source

Source: https://habr.com/ru/post/984543/


All Articles