[Newbie/Beginner] How to create a project that could run in iOS and Android?

Hi all,

If I want to create a game that can be port to iOS and Android,
is it compulsory to create a hybrid project at the VERY START? OR I can port it to Android during the final stages (of my development)?

I am able to build an iOS project and an Android project. But not a hybrid.
(http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Setting_up_Android_Development_Environment_on_Mac_OSX#Build-3838-Run-the-Test-demo)
This is the only tutorial that works for me

I find creating hybrid projects very difficult. and didn’t quite understand both of the tutorials:
http://paralaxer.com/cocos2d-x-project-setup/
http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/

Can anyone help me ?
Many Thanks!

You don’t have to create a hybrid project at the very start. You should be able to port it to another platform easily later.

I’ve found a tutorial , close to what I’m asking for…
http://gameit.ro/2011/08/running-the-cocos2d-x-projects-on-android/

But I couldn’t find any android folder in my current project! (started the cocos2dx project from XCode)
So how am I suppose to put it into Eclipse?
or
How do I create the android/proj.android folder for my current project?

But I couldn’t find any android folder in my current project! (started the cocos2dx project from XCode)
I think you didn’t do the command `./create-android-project.sh` for creating android project, right? :slight_smile:

So how am I suppose to put it into Eclipse?
Yes

How do I create the android/proj.android folder for my current project?
It creates after `./create-android-project.sh`

I ported iOS to Android after iOS was completed.

Here is a full tutorial for set up development environment for cocos2d-x for Android.
http://blog.webstarworks.com/2013/04/development-environment-preparation-for-porting-ios-game-made-using-the-cocos2d-framework-to-android-part-1
http://blog.webstarworks.com/2013/04/development-environment-preparation-for-porting-ios-game-made-using-the-cocos2d-framework-to-android-part-2