Cocos2d getting started and problems encountered during the first run

Source: Internet
Author: User

Download cocos2d from github. Https://

After entering the above URL, if you do not use git or svn, click "Download ZIP" in the lower right corner of the page.

After the download is decompressed, there is a "cocos2d-android" directory, because I am Android development, so will use this directory.

Next, we will include this folder in Eclipse.

There are two errors during running:

1. The first error is that this project is a Library project. You can simply cancel its Libray attribute in the attribute.

The second error will occur during subsequent running.

After reading for a long time, I finally found that this folder already contains a jar file, and the source code in src is repeated, just need to delete/libs/cocos2d-android.jar file to run it.

Ah, there are a lot of demos available for running, so interesting ~

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: 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.