tutorial comes just put libs / armeabi directory , so files can be deployed , deployed to the real machine also can be used directly above
Why do so, it also prompted to find the file , what are we going to set permissions for
------ Solution --------------- -----------------------------
so put libs lib at the beginning of the following naming requires that you so the name should be libhello-jni.so
------ Solution ------------------------------- -------------
I tested , or not, if coupled libhello-jni.so, then the activity of modified
static {
System.loadLibrary ("libhello-jni");
}
still the same message can not be loaded libhello-jni, should not you say this issue
library name changed libhello-jni.so,
source lib prefix removed , use the load statement is as follows :
System.loadLibrary ("hello-jni");
------ eference ------------------------------------ ---
mk file is as follows
LOCAL_PATH: = $ (call my-dir)
include $ (CLEAR_VARS)
LOCAL_MODULE: = hello-jni
LOCAL_SRC_FILES: = hello-jni.c
include $ (BUILD_SHARED_LIBRARY)
------ eference ------------------------------ ---------
agree with # 2, the normal compile finished, it defaults with lib prefix
I just tried a project so library under the lib prefix removed, return null when the results start problems .
------ eference --------------------------------------- < br>
Well, I try
------ eference ------------------------------ ---------
I tested , or not, if coupled libhello-jni.so, then the activity of modified
static {
System.loadLibrary ("libhello-jni");
}
still the same message can not be loaded libhello-jni, should not you say this problem
------ eference ------------------ ---------------------
I tested , or not, if coupled libhello-jni.so, then the activity of modified
static {
System.loadLibrary ("libhello-jni");
}
still the same message can not be loaded libhello-jni, should not you say this problem
------ eference ------------------ # 7 ---------------------
you adopt a method to try. Do not add loaded lib.
------ eference --------------------------------------- < br> is not installed on the machine when it really what permissions settings , or SO file on the deployment of the past, my Samsung NOTE8.0
------ eference ------------------------------------ ---
I tested , or not, if coupled libhello-jni.so, then the activity of modified
static {
System.loadLibrary ("libhello-jni");
}
still the same message can not be loaded libhello-jni, should not you say this issue
library name changed libhello-jni.so,
source lib prefix removed , use the load statement is as follows :
System.loadLibrary ("hello-jni");
powerful , it really is like this, thank you seniors
没有评论:
发表评论