[SOLVED] Game crashes on Android when using AdMob Initialize blocks

Juhi

  • Posts: 4
My game is working normally in test mode on android without Admob extension(Stencyl 3.2). And the problem:

Yesterday I was able to test my game on android when Admob was installed and enabled(Stencyl 3.2). But when I added Admob Initialize block(no matter which one) to the game, my game crashed every time on android when it was time to execute initialize block. I changed the place of this block in the game but it didn't help.

After a few of testings on android I got bigger problem and I couldn't test game anymore on android. I uninstalled Stencyl and android sdk and I installed Stencyl 3.1 and android sdk and Admob 3.0 and I did this:

1) Go to path-to-stencyl/plaf/haxe/extensions/ads
2) Delete the file named "include.nmml"
3) Copy the new "include.nmml" file in the ads folder (you can find it at the end of this post).
4) Clean your project using Run > Clean Project

but I couldnt test my game on android at all.

So today I reinstalled Stencyl 3.2(totally removed Stencyl 3.1 before that..) and also Admob extension 3.0. Now my game is crashing immediately in the beginning of testing when Admob is enabled. No matter if I'm or not using Admob blocks. When I disable Admob extension I'm able to test my game on android without problems. So what should I do next?

Stencyl 3.2
AdMob 3.0
Phone: ZTE BLADE III
Android 4.0.4
Windows 7


-Juhi-

« Last Edit: December 16, 2014, 04:37:45 pm by Juhi »

Juhi

  • Posts: 4
So the problem was wrong numbers in AndroidManifest.xml. I installed Admob 3.0 extension where those numbers was fixed. I also bought new telephone Motorola Moto G 4G and now I'm able to test any games on android and ads are working perfectly. Motorola Moto G is very nice phone. Buy it if you want to buy new phone but don't know which one ;) Do not buy ZTE BLADE III... :D

« Last Edit: December 14, 2014, 01:12:08 pm by Juhi »