Cocos2dx 2.2.3 compile the first apk to the Android phone, cocos2dxapk

Source: Internet
Author: User

Cocos2dx 2.2.3 compile the first apk to the Android phone, cocos2dxapk

1. android-ndk-r10 (pay attention to 32-bit and 64-bit do not go wrong, I am not a small heart wrong tossing me two days)



2. adt_201407 (eclipse has been integrated with sdks and so on)

 

3. Cococs2d-x 2.2.3



4. Brainless installation of python2.7, set the environment variable path, and add the python installation path to the Environment Variable



5. Create a New cocos2dx Project

Cmd

Cd G: \ DesignSoftware \ cocos2d-x-2.2.3 \ tools \ project-creator

Then create_project.py-project HelloWorld-package com. gkh. helloworld-language cpp

Next, we will find that there is another new project under the Projects directory.



6. Copy the resource file to the assets Directory.



7 copy the org folder in the path G: \ DesignSoftware \ cocos2d-x-2.2.3 \ cocos2dx \ platform \ android \ java \ src to the following path



8. Use eclipse in adt to import the new cocos2dx Project



9. Set the android sdk path




10. Set ndk cmd



11. Set ndk Environment Variables



12. Then run.





Cocos2dx-30-rc1 compilation APK Error

The deserialization of framework-res.apk requires the original file that has not been moved,
The system packages are actually compiled twice.

You decompile the file first, and then do not modify anything. Compile the file directly. If an error is reported, the file is passive.
 
What is the so file used when the cocos2dx win32 project is transplanted to Android?

This is a library file, which is a library file compiled by c ++ and provided for android to call.
If you still do not understand the information, you can view android ndk related information.

If you do not understand, please let me know.

Related Article

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.