Win10+vs2013+eclipse Project Packaging Release detailed

Source: Internet
Author: User

Win10+vs2013+eclipse Project Packaging Release detailed

1. Download the software:

Jdk

Android_adt

Android_ndk

Android_ant

2. Environment configuration

Go to the COCOS2DX engine directory, execute the setup.py, and then copy the path to the project software. In the case of ant, you need to go to the bin directory. You can also drag the file directly into it.

3, open Eclipse, but the premise is to configure the JDK environment variables, here is no longer detailed, and the JDK version and Eclipse version needs to correspond, otherwise eclipse will not open. For example, if you install a JDK that is 64-bit, and Eclipse is 32-bit, this is certainly not possible, and it is easy for newbies.

4. After opening eclipse, import the Proj.android file in the project and then put the C:\GamePlay (project) \cocos2d\cocos\platform\android\java\ The COM file and the org file in src are copied to src under Eclipse.

5, remove the exclamation point, right-click on the project, choose Build Path->configurebuild path,:

After completion, then select Android, then select the corresponding version of Android, then the library, select the wrong file under reference, then select Remove removed, finally select Apply Application, click OK to complete, get:

After removal, get:

Note: There is no need to hook up the is Library in front of it.

6. Open the Android.mk file in the JNI directory under the project, add all C + + classes in the file, that is,. cpp files, you need to add all, and the name can not be written incorrectly, otherwise the compilation is unsuccessful. :

7, change the screen, according to the different items, we have different requirements of the game, sometimes we need vertical screen, sometimes need horizontal screen, which requires us in the packaging of the time to change their own, That is, in the project Androidmanifest.xml file, select the following Androidmanifest.xml file, and then there is a line of code, that is android:screenorientation= "landscape/ Protrait ",

If it is landscape, then it is a cross-evaluation, if it is portrait, then the cross-evaluation, and then save.

8. Copy the resource file in the project to the Proj.android directory in the project and rename it to assets file. Note: This can only be written as assets file, otherwise the compilation will be error, perhaps running on the phone will also flash back.

9, package compile, open a command prompt, go to the project in the Proj.android directory, and then enter build_native.py to compile,:

10, after the completion of the compilation, refresh in Eclipse, then the project right-click, run, insert the phone can be directly run on the phone, and, after running, we can see in the bin recorded a number of files, including the. apk file, which means that the package is successful.

11. Right-click on the project, select the Android tools->exportsigned application package to export the signed apk file, then you can publish your project to the Internet.


Come here and show that your game has been developed and packaged, and you're a step closer to success.

Win10+vs2013+eclipse Project Packaging Release detailed

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.