How to convert iOS and Mac OS X Cocos2dx App to Android App?

It is strange that the error is reported in cocosbuilder/CCBMemberVariableAssigner.h .

Since that code has no issue if compiled for iOS or MAC?

EDIT: Ok. I seems to solved it with #include "cocos2d.h"
prior to #include "cocosbuilder/CCBSelectorResolver.h #include "cocosbuilder/CCBMemberVariableAssigner.h"

Now the project compiles. I opened the project in Android Studio and started Genymotion Android emulaor. But it reports “Unortunatelly, libcocos2dx has stopped.” in Genymotion Android emulator. Any advice, please?

I am getting: A/libc: Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1), thread 1239 (dal.testproject), not sure how to debug this?

The same app runs smoothly on iOS and Mac.

MacBook-Air:proj.android-studio pavel$ /Users/pavel/Dev/adt-bundle-mac-x86_64-20130917/sdk/platform-tools/adb logcat | ndk-stack -sym /obj/local/armeabi
********** Crash dump: **********
Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.buildbot.20151117.142614:userdebug/test-keys'
pid: 1239, tid: 1239, name: dal.testproject  >>> com.dal.testproject <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c
Stack frame #00  pc 00172284  /system/lib/libdvm.so (houdini::dvmGetMethodShorty(houdini::fake_Method const*)+4)
Stack frame #01  pc 000cb2dd  /system/lib/libhoudini.so
Stack frame #02  pc 000c53a8  /system/lib/libhoudini.so
Stack frame #03  pc 000bfec2  /system/lib/libhoudini.so
Stack frame #04  pc 000e717e  /system/lib/libhoudini.so (dvm2hdNativeMethodHelper+1102)
Stack frame #05  pc 00172844  /system/lib/libdvm.so (houdini::hookJniOnload(bool, void*, void*, void*)+132)
Stack frame #06  pc ffffffff  <unknown>
Crash dump is completed

********** Crash dump: **********
Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.buildbot.20151117.142614:userdebug/test-keys'
pid: 1267, tid: 1267, name: dal.testproject  >>> com.dal.testproject <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c
Stack frame #00  pc 00172284  /system/lib/libdvm.so (houdini::dvmGetMethodShorty(houdini::fake_Method const*)+4)
Stack frame #01  pc 000cb2dd  /system/lib/libhoudini.so
Stack frame #02  pc 000c53a8  /system/lib/libhoudini.so
Stack frame #03  pc 000bfec2  /system/lib/libhoudini.so
Stack frame #04  pc 000e717e  /system/lib/libhoudini.so (dvm2hdNativeMethodHelper+1102)
Stack frame #05  pc 00172844  /system/lib/libdvm.so (houdini::hookJniOnload(bool, void*, void*, void*)+132)
Stack frame #06  pc ffffffff  <unknown>
Crash dump is completed

********** Crash dump: **********
Build fingerprint: 'generic/vbox86p/vbox86p:4.3/JLS36G/eng.buildbot.20151117.142614:userdebug/test-keys'
pid: 1291, tid: 1291, name: dal.testproject  >>> com.dal.testproject <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c
Stack frame #00  pc 00172284  /system/lib/libdvm.so (houdini::dvmGetMethodShorty(houdini::fake_Method const*)+4)
Stack frame #01  pc 000cb2dd  /system/lib/libhoudini.so
Stack frame #02  pc 000c53a8  /system/lib/libhoudini.so
Stack frame #03  pc 000bfec2  /system/lib/libhoudini.so
Stack frame #04  pc 000e717e  /system/lib/libhoudini.so (dvm2hdNativeMethodHelper+1102)
Stack frame #05  pc 00172844  /system/lib/libdvm.so (houdini::hookJniOnload(bool, void*, void*, void*)+132)
Stack frame #06  pc ffffffff  <unknown>

Tried to run app on the LG phone.

Now I am getting more clear error message.

 04-13 16:51:46.647 32222-32255/com.dal.testproject D/cocos2d-x debug info: cocos2d: fullPathForFilename: No file found at ccbParticleStars.png. Possible missing file.
04-13 16:51:46.647 32222-32255/com.dal.testproject A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x2c in tid 32255 (GLThread 304059)

“fullPathForFilename: No file found at ccbParticleStars.png. Possible missing file.”
But the file is there in Resources/ccbResources folder.

ccbParticleStars.png file si used from Cocos Builder generated designed user interface CCBI file.

It works on iOS and Mac OS, but on Android it reports missing file. What could be wrong and how to solve it, please?

EDIT: Got it running by adding search path “ccbResources” folder in AppDelegate.

searchPath.push_back("ccbResources");

I use SimpleAudioEngine::playEffect to play effects with pitch specified (It works on iOS and Mac OS). But i seems it does not change a pitch on Android? What could be the
issue?

SimpleAudioEngine::playEffect:		(NSString *) 	filePath
loop:		(BOOL) 	loop
pitch:		(Float32) 	pitch
pan:		(Float32) 	pan
gain:		(Float32) 	gain