The Point:
I want to call a C/C++ function from Java.
What I do:
1
I followed this direction. https://www.youtube.com/watch?v=0fEtrekNcOo
Just created Project, wrote below code and build it.
public native String HelloJNI();
static {
System.loadLibrary("HelloJNI");
}
2
javah -d jni -classpath /Applications/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-19/android.jar;../../build/intermediates/classes/debug com.test.ndktest.MyActivity
The Problem:
I got this error message. "bash: ../../build/intermediates/classes/debug: is a directory"
I spent many time to find solutions.. Any help will be appreciated.
Thanks.
C/C++ will be used for obfuscation of my code. I will hide some API keys in C/C++ code.
I watched another video but I could not find any solutions.. https://www.youtube.com/watch?v=okLKfxfbz40