Android : Android NDK-build process in Android Studio

on Sunday, March 29, 2015


I am trying to get the sample app of antidote running (source code).


I am confused as to how I need to run my app in Android Studio. I put the C-source files in the /jni folder, installed Cygwin and run the command ../android/android-ndk-r10d/ndk-build NDK_PROJECT_PATH=app/src/main/ from in the /myworkspace/myApp-folder.


I don't seem to be getting any errors, and a /libs folder has been created with in it a library, as depicted in the image below.


Tree of files


However, when clicking the green run-button, Android Studio still gives errors in :app:compileDebugNdk. Since the code is compiled, does the ndk still need to be run? How do I turn this off? And do I still need to somehow install the library ndk-build has made?


0 comments:

Post a Comment