I will try to explain the best I can according to what I have tried. Some things may be inaccurate but basically the facts are:
A "libxxxx.so" library file, contains some "exportable" C functions and other which are not.
In order to make these functions exportable, they are declared (in the C or Cpp file) with a special syntax which basically is the package name concatenated with the calling class name and the function name (all this with some special rules such as converting the dots of the package name to '_' and other...).
As this part is already done and is internal to the .so file, the only rules for the calling part are that the package name and the class name are the ones that the internal functions in the library expect.
You can try it easilly. Change them in your project and see if this was the missing piece. Or also change them in the working project and see if it still works