1.Error base operand of ‘->’ has non-pointer type ‘JNIEnv {aka _JNIEnv}’ when create NDK project
解决:c是(*env)->NewStringUTF(“Hello World JNI!”);
c++是env->NewStringUTF(“Hello World JNI!”);
1.Error base operand of ‘->’ has non-pointer type ‘JNIEnv {aka _JNIEnv}’ when create NDK project
解决:c是(*env)->NewStringUTF(“Hello World JNI!”);
c++是env->NewStringUTF(“Hello World JNI!”);