JNI “undefined reference” to c++ method
问题 I'm trying to create poker app with JNI in android studio, I want to save one instance of c++ class (TexasHoldem) and invoke it's methods only. in the texasJNI.java I wrote: public class jniTexasHoldem { private long texasHoldm; jniTexasHoldem() { ConstructNativeTexas(); } // Used to load the 'native-lib' library on application startup. static { System.loadLibrary("native-lib"); } /** * A native method that is implemented by the 'native-lib' native library, * which is packaged with this