Cocos2d-x for Android can't resolved coscos2dx Library

Source: Internet
Author: User

Cocos2d-x configuration can refer to:

Cocos2d-x android can't resolved coscos2dx library is a bug that occurs when creating the cocos2d-x andrid project, stackoverflow solution:

In cocos2d-x 2.0.3 .. Cocos2d-x lib java files has been considered as a different project only so import that project in the eclipse

Lets make it simple

  1. First import the project in eclipse from this path-cocos2d-2.0-x-2.0.3/cocos2dx/platform/Android/Java

You will see libcocos2dx project in eclipse... keep this project open always otherwise your projects will give error on the syntax of Library

  1. Run create-Android-Project

  2. Now import the project which you have created and just run (if you know the concept of islibrary then that's how they are maintaining it now ..)

Also additional information to run from Eclipse only, right click Project-> C/C ++ build uncheck use default build command and add following bash $ {workspace_loc: /yourprojname}/ ndk_debug = 1 V = 1

Good luck .. if any question please feel free to ask

Is to first load the cocos2d-2.0-x-2.0.3/cocos2dx/platform/Android/Java in the project, then you can.

Right-click the project and run it. the Cocos startup screen is displayed on the mobile phone.

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.