On admob page:
Cocos2d-x v2.2+
Android v2.3+
- create and compile new project (cocos2d-x v3.10)
- import admob (all succesfull)
- replace include path in AppDelegate.cpp:
#include "../proj.android/jni/pluginadmob/PluginAdMob.h"
- compile and deploy application.
On device with android 4.+ application worked. On device with android 2.3.6 app crashed:
D/dalvikvm(13516): Trying to load lib /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so 0x40515df8
I/DEBUG ( 1323): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1323): Build fingerprint: 'samsung/GT-S6102/GT-S6102:2.3.6/GINGERBREAD/XXMA1:user/release-keys'
I/DEBUG ( 1323): pid: 13516, tid: 13516 >>> org.cocos2dx.admob <<<
I/DEBUG ( 1323): signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 8111dd3a
I/DEBUG ( 1323): r0 8145694c r1 81121c55 r2 8144d000 r3 8111dd21
I/DEBUG ( 1323): r4 8145694c r5 00000048 r6 00000004 r7 00000000
I/DEBUG ( 1323): r8 80218240 r9 0000cec8 10 4428fc04 fp beebc7d0
I/DEBUG ( 1323): ip 8144cb88 sp beebc3e8 lr 8111dd2f pc 8111dd3a cpsr 40000030
I/DEBUG ( 1323): d0 3f8000003f800000 d1 3ff0000040000000
I/DEBUG ( 1323): d2 4d86c52c424d3647 d3 00540ff04a2c8180
I/DEBUG ( 1323): d4 3fbc71c7002b2060 d5 3fcef049fb9094d1
I/DEBUG ( 1323): d6 401c000000000000 d7 0000000000000000
I/DEBUG ( 1323): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1323): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1323): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1323): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1323): scr 60000010
I/DEBUG ( 1323):
I/DEBUG ( 1323): #00 pc 0011dd3a /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so
I/DEBUG ( 1323): #01 lr 8111dd2f /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around pc:
I/DEBUG ( 1323): 8111dd18 002bd309 0032d812 4c08b510 6824447c
I/DEBUG ( 1323): 8111dd28 f0034620 4906ff5d 46204a06 68094479
I/DEBUG ( 1323): 8111dd38 e8bd447a f2494010 bf00bcd5 0032d7f0
I/DEBUG ( 1323): 8111dd48 0032d7e4 0032f2c4 4c08b510 3448447c
I/DEBUG ( 1323): 8111dd58 f24d4620 4906f903 46204a06 68094479
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around lr:
I/DEBUG ( 1323): 8111dd0c 00338c6e 0032f326 0032d804 002bd309
I/DEBUG ( 1323): 8111dd1c 0032d812 4c08b510 6824447c f0034620
I/DEBUG ( 1323): 8111dd2c 4906ff5d 46204a06 68094479 e8bd447a
I/DEBUG ( 1323): 8111dd3c f2494010 bf00bcd5 0032d7f0 0032d7e4
I/DEBUG ( 1323): 8111dd4c 0032f2c4 4c08b510 3448447c f24d4620
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r0:
I/DEBUG ( 1323): 8145692c 00000000 81120fb1 81120fa5 00000000
I/DEBUG ( 1323): 8145693c 00000000 00000000 001ac744 00000000
I/DEBUG ( 1323): 8145694c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323): 8145695c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323): 8145696c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r1:
I/DEBUG ( 1323): 81121c34 68404770 e8804770 47700006 4604b510
I/DEBUG ( 1323): 81121c44 b1086800 eb36f7f7 60232300 bd106063
I/DEBUG ( 1323): 81121c54 4604b510 fff2f7ff bd104620 4614b570
I/DEBUG ( 1323): 81121c64 460d4606 ffeaf7ff dd0b2c00 6074b155
I/DEBUG ( 1323): 81121c74 f7f74620 4629eb26 60304622 4070e8bd
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r2:
I/DEBUG ( 1323): 8144cfe0 afd211c9 afd20815 afd187d5 afd19fc9
I/DEBUG ( 1323): 8144cff0 afd0b810 afd0c670 afd17d11 afd11e41
I/DEBUG ( 1323): 8144d000 00000000 ffffffff 813dd15b 813dd16c
I/DEBUG ( 1323): 8144d010 8113030d 813dd175 813dd184 81130135
I/DEBUG ( 1323): 8144d020 ffffffff ffffffff 3f800000 00000020
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r3:
I/DEBUG ( 1323): 8111dd00 f2496809 b002fcf3 bf00bd70 00338c6e
I/DEBUG ( 1323): 8111dd10 0032f326 0032d804 002bd309 0032d812
I/DEBUG ( 1323): 8111dd20 4c08b510 6824447c f0034620 4906ff5d
I/DEBUG ( 1323): 8111dd30 46204a06 68094479 e8bd447a f2494010
I/DEBUG ( 1323): 8111dd40 bf00bcd5 0032d7f0 0032d7e4 0032f2c4
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r4:
I/DEBUG ( 1323): 8145692c 00000000 81120fb1 81120fa5 00000000
I/DEBUG ( 1323): 8145693c 00000000 00000000 001ac744 00000000
I/DEBUG ( 1323): 8145694c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323): 8145695c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323): 8145696c 00000000 00000000 00000000 00000000
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r5:
I/DEBUG ( 1323): 00000028 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1323): 00000038 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1323): 00000048 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1323): 00000058 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1323): 00000068 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r6:
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r7:
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r8:
I/DEBUG ( 1323): 80218220 e1a00000 e1a00000 e1a00000 e1a00000
I/DEBUG ( 1323): 80218230 e1a00000 e1a00000 e1a00000 e1a00000
I/DEBUG ( 1323): 80218240 e1f470b2 e207c0ff e088f30c e92d4ff0
I/DEBUG ( 1323): 80218250 e24dd004 e1a00000 e1a00000 e1a00000
I/DEBUG ( 1323): 80218260 e1a00000 e1a00000 e1a00000 e1a00000
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r9:
I/DEBUG ( 1323): 0000cea8 00000000 00000000 00000000 00000000
I/DEBUG ( 1323): 0000ceb8 00000000 00000000 00000000 0000013b
I/DEBUG ( 1323): 0000cec8 00000001 00000008 00000000 00000000
I/DEBUG ( 1323): 0000ced8 afd4d4c0 000034cc 44290000 4428d300
I/DEBUG ( 1323): 0000cee8 00003000 00000000 4428fc18 00000000
I/DEBUG ( 1323):
I/DEBUG ( 1323): code around r10:
I/DEBUG ( 1323): 4428fbe4 00000001 40531d50 4428fc34 448648d4
I/DEBUG ( 1323): 4428fbf4 442cb61c 4483d730 00000000 40531b88
I/DEBUG ( 1323): 4428fc04 4428fc34 4486492a 4438f718 0000d018
I/DEBUG ( 1323): 4428fc14 00000000 40531d30 40515df8 4428fc84
I/DEBUG ( 1323): 4428fc24 4486a58a 4438fb2c 4486492a 00000000
I/DEBUG ( 1323):
I/DEBUG ( 1323): stack:
I/DEBUG ( 1323): beebc3a8 00000040
I/DEBUG ( 1323): beebc3ac 81395bcd /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so
I/DEBUG ( 1323): beebc3b0 81456944
I/DEBUG ( 1323): beebc3b4 8144d000
I/DEBUG ( 1323): beebc3b8 81456944
I/DEBUG ( 1323): beebc3bc 81456944
I/DEBUG ( 1323): beebc3c0 8144d000
I/DEBUG ( 1323): beebc3c4 81456948
I/DEBUG ( 1323): beebc3c8 00000000
I/DEBUG ( 1323): beebc3cc 813676f9 /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so
I/DEBUG ( 1323): beebc3d0 00000000
I/DEBUG ( 1323): beebc3d4 8111dd07 /mnt/asec/org.cocos2dx.admob-1/lib/libcocos2dcpp.so
I/DEBUG ( 1323): beebc3d8 00000000
I/DEBUG ( 1323): beebc3dc 00000000
I/DEBUG ( 1323): beebc3e0 df002777
I/DEBUG ( 1323): beebc3e4 e3a070ad
I/DEBUG ( 1323): #00 beebc3e8 81438898
I/DEBUG ( 1323): beebc3ec b00037f5 /system/bin/linker
I/DEBUG ( 1323): beebc3f0 b000e1cc
I/DEBUG ( 1323): beebc3f4 b000e1c8
I/DEBUG ( 1323): beebc3f8 00002751
I/DEBUG ( 1323): beebc3fc b00038a9 /system/bin/linker
I/DEBUG ( 1323): beebc400 00462000
I/DEBUG ( 1323): beebc404 afd00000 /system/lib/libc.so
I/DEBUG ( 1323): beebc408 0000001d
I/DEBUG ( 1323): beebc40c b000e0e8
I/DEBUG ( 1323): beebc410 8144b468
I/DEBUG ( 1323): beebc414 b000e0e8
I/DEBUG ( 1323): beebc418 00002751
I/DEBUG ( 1323): beebc41c b0004f93 /system/bin/linker
I/DEBUG ( 1323): beebc420 0000001d
I/DEBUG ( 1323): beebc424 b000e174
I/DEBUG ( 1323): beebc428 b000e0e8
I/DEBUG ( 1323): beebc42c 00000008
I/DEBUG ( 1323): beebc430 00000000
I/DEBUG ( 1323): beebc434 802461c9 /system/lib/libdvm.so
I/DEBUG ( 1323): beebc438 beebc45c
I/DEBUG ( 1323): beebc43c b000e0f0
I/DEBUG ( 1323): beebc440 00000000
I/DEBUG ( 1323): beebc444 b000e0e8
I/DEBUG ( 1323): beebc448 001ac690
I/DEBUG ( 1323): beebc44c 001ac6b3
I/DEBUG ( 1323): beebc450 40515df8
I/DEBUG ( 1323): beebc454 b0004fdd /system/bin/linker
I/DEBUG ( 1323): beebc458 b000e0e8
I/DEBUG ( 1323): beebc45c b0004af7 /system/bin/linker
I/DEBUG ( 1323): beebc460 001ac690
I/DEBUG ( 1323): beebc464 beebc4c4
I/DEBUG ( 1323): beebc468 001ac690
I/DEBUG ( 1323): beebc46c 40515df8
Out from
ndk-stack -sym ./obj/local/armeabi -dump LogFromLogcat.txt
is empty.
What am I doing wrong?