Android uses dynamic so libraries that have been generated by third parties (to resolve UnionPay crashes)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.