How to build andoird project for Intel cpu and for other API Level?

I’m using build_native.sh to build my project. By default, it’s built for armeabi. My questions are:

  • How to build for Intel CPU?
  • How to specify the target AP Level?

Thanks

How to build for Intel CPU?
Go to the Application.mk
It should have the below line
APP_ABI
armeabi

edit it to
APP_ABI := armeabi x86

Now when you run build_native.sh then it will build for both armeabi and x86 (intel), if you want only intel then remove armeabi

  • How to specify the target AP Level?

When you create android project from cocos2d, the script asks you for the api level, so you can specify it there, or else after importing your project to
Eclipse go to project properties and click on Android tab and you can give target api. Hope it helps to you:)

Thank you so much.