There is some issue with android studio. My changes to the native code(library) are not getting effected on rebuild project. Following are the steps I am following.
- Remove the existing libraries (
rm -r jniLibs/* rm -r obj/local/*
) - clean the project
- make the project.
- Run the app
I have to repeat the above steps 4 to 5 times and then my changes are seen. I am pretty sure I am missing something. Can you guys help me out if i need to change any configuration or something..
Here is the ndk command I am using..
ndk-build NDK_LIBS_OUT=./app/src/main/jniLibs
The above command is building my native code and is properly creating library in jniLibs folder. I am loading this library from my Java source code.