First, my project structure is like this:
Android project A --> Android Library project B(contains some native so library) --> Java library C.
how the project A reference the android library project B:
The native library in the android library project B.
how the Android Library project B is library:
The load library code (in the android library project B) :
System.loadLibrary("G72x");
System.loadLibrary("H264Android");
The crash log :
12-27 20:32:51.698: E/AndroidRuntime(11589): FATAL EXCEPTION: Thread-1694 12-27 20:32:51.698: E/AndroidRuntime(11589): java.lang.UnsatisfiedLinkError: InitDecoder 12-27 20:32:51.698: E/AndroidRuntime(11589): at com.xx.xxx.media.H264Decoder.InitDecoder(Native Method) 12-27 20:32:51.698: E/AndroidRuntime(11589): at com.xx.xxx.media.VideoParseThread.getH264(VideoParseThread.java:131) 12-27 20:32:51.698: E/AndroidRuntime(11589): at com.xxx.xxx.media.VideoParseThread.run(VideoParseThread.java:46)
Now when the application run the code that need the so library, it crashed. I have read some answers, but it's still not resolved.
If the all the library b project is in the project A, it worked well.
Any help will be appreciated, this problem drives me crazy, i know it should have one solution, but i don't know how.