简体   繁体   中英

Integrate Android Project in my iOS project

I have to Develop a Game using Cocos2dx for multiplatform purpose.Is it possible to integrate Android project in my IOS project ? I am using xcode 4.2.1 for building my iOS project. please help me if anyone has done it already.Thanx in advance:)

assume you already have eclipse and ADT, android-sdk, android-ndk ready.

the basic steps is

  1. use the create-android-project.sh to create an android porject first.
  2. import the android project into eclipse (New-> project ->android project from existing source). for cocos2d 2.x
  3. import the cocos2d-x java lib in to eclipse using the same way for your android project.
  4. make your android project depends on cocos2d-x java project.
  5. try to compile and run it on your android devices first.

if it success,

  1. move your android project folder to the indicated position in that tutorial.
  2. change the build_native.sh in your android project folder (correct the lib path, parent folder etc.)
  3. delete your previously imported android project and import the project form the new position again. 4.(important) right click on your project property in eclipse, make it depend on the cocos2d-x java project you imported before.

roughly it is done. you may meet bunch of problems in this process, but they will be small problems and I guess google will solve most of them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM