1 、问题
编译Android项目,出现下面错误 NDK integration is deprecated in the current plugin 2、解决办法
在我们 gradle.properties(Project Properties) file
add android.useDeprecatedNdktrue
1 problem
ndk-build
error: get_string undeclared here (not in a function) 2 resolve jstring get_strstring(JNIEnv* env, jobject thiz)
{return (*env)->NewStringUTF(env, "I am chenyu, 动态注册JNI");
}jint add_int(JNIEnv* env, jobject jobj, ji…