开发者

Android - Unit test on the class that calls JNI functions?

开发者 https://www.devze.com 2023-03-01 05:09 出处:网络
I am working on an 2.2 android platform, and I have a java class that gathers a list of JNI functions.

I am working on an 2.2 android platform, and I have a java class that gathers a list of JNI functions.

Now I am going to do the unit test on this class, but my IDE wont let me with this error msg: "java.lang.UnsatisfiedLinkError: no nativeI开发者_JAVA技巧nterface in java.library.path"

Is there any setting or things that I should do before I do the unit test on this kind of class?

Thanks in advance.

--Terry


I think you don't have the JNI folder and all the native files (.c, .h) in your project.

0

精彩评论

暂无评论...
验证码 换一张
取 消