Same project runs fine on iPhone, but Crash on Android

Hello I´m getting troubles building the same project that runs fine on iPhone, doesn´t on Android.

When I make a build native only shows two warnings:
Compile++ thumb : cocos2d <= CCImage.cpp jni/../../libs/cocos2dx/platform/CCImage.cpp: In member function 'bool cocos2d::CCImage::_initWithPngData(void*, int)': jni/../../libs/cocos2dx/platform/CCImage.cpp:257: warning: 'png_info_struct::color_type' is deprecated (declared at jni/../../libs/cocos2dx/platform/third_party/android/libpng/png.h:650) jni/../../libs/cocos2dx/platform/CCImage.cpp:257: warning: 'png_info_struct::color_type' is deprecated (declared at jni/../../libs/cocos2dx/platform/third_party/android/libpng/png.h:650) Compile++ thumb : cocos2d <= CCStdC.cpp

In Android crashes when I do a popScene or replaceScene…
`void Level::MainMenuCallback(CCObject* pSender)
{

CCDirector::sharedDirector()->popScene();

CCScene* pScene = CCScene::node();
CCLayer* pLayer = new LevelController();
pLayer->autorelease();

pScene->addChild(pLayer);
CCDirector::sharedDirector()->replaceScene(pScene);

}`

Any suggestion??

Thanks in advance!

I think you should find what make crash by ndk-stack.

Thank you for the reply.

Sorry for my question but, where is the ndk stack??
I just use eclipse and build_native.sh

Thanks in advance.

You can refer NDK_ROOT/docs.