When the game access to third-party RGSDK, the game paid out a problem, when clicking on the UnionPay logo, the game crashes.
By asking the RGSDK technician. A libentryex.so was found to be less than a copy of a file in the demo of the given SDK that I copied from the document. They say this is the so library of UnionPay.
So I copied it and copied it to the Libs/armeabi folder, and the so library was erased when the APK was generated.
So the online search for information found that the location of so library is Libs/armeabi, but not manual copy. But the system gives him it set past.
And so libraries can be used as src files. Then create a new folder Jni/unionpay. Put the so library in the same way as a C + + file. (Note that it was copied from Windows Resource management).
and rewrite android.mk.
Add to:
Local_module: = Entryex
Local_module_filename: = Libentryex
Local_src_files: = unionpay/libentryex.so//Note here the relative, must be able to be found.
Include $ (prebuilt_shared_library)//Note the form here
Local_module: = cocos2dlua_shared
Local_shared_libraries: = Libentryex//This sentence is the key.
Local_module_filename: = Libcocos2dlua
Then the mainline thread:
static {
system.loadlibrary ("Entryex");
System.loadlibrary ("Cocos2dlua");
}
Notice in front of the library do not add lib, otherwise can not find, and local_module definition of the same. Then you can use the library.
I added Lib before, so I wasted a lot of time.
I hope we have some help.
Android uses dynamic so libraries that have been generated by third parties (to resolve UnionPay crashes)