Cocos2d porting to Android introducing third-party so files when compiling deletes the solution

Source: Internet
Author: User

In the game when docking the payment of the SDK to introduce the payment of so file when the compile time is always deleted, and then after looking for data to organize a solution

The scheme is as follows

After the project is imported wirelessly, create a prebuilt folder in the corresponding Jni folder and copy all the so files to be imported.

Then write a bat batch of files

The contents of the file are:

xcopy/x/s/c/R g:\svn\kimbio\proj.android\jni\prebuilt\*.so G:\SVN\Kimbio\proj.android\libs\armeabi\

The specific path is written according to your actual path.

Then select the builders in the properties in project and create a new program as


Then add the well-written batch of bat files and apply OK

Batch processing will re-import the so into the Armeabi folder in Libs when you re-run it.

This method runs normally in my program.

If there are any bad places to point out to study together

You can also join the Exchange group:252799892

Feel helpful to you, please give a comment round thank you

Cocos2d porting to Android introducing third-party so files when compiling deletes the solution

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.