Unable to test game on my device after enabling AdMob


  • Posts: 13
Hello everyone,

as the title says I can't test my game on my device after I enable the AdMob extension,
I followed the steps provided in the Pdf I've downloaded here -> http://community.stencyl.com/index.php/topic,33509.0.html

I made an account on the AdMob website and entered the Publisher Key in Stencyl,
use the "initialize AdMob" block and the ones to show/hide the ad,
but I can't make it work and the log viewer doesn't generate any information,
it only says that my game could not be built.

If I disable the extension the game works just fine though.
What am i doing wrong?

Thanks for the help!

Edit: On flash the game seems to work regardless if the extension is enabled or not.

I tried reinstalling AdMob multiple times, and also reinstalling Stencyl but still it does not work.

« Last Edit: August 21, 2014, 11:41:05 am by LeonMane »


  • *
  • Posts: 524
Sorry for the late reply. Try to follow these steps.

In your case, Stencyl is trying to use an old version of the AdMob SDK. To fix this error, do a clean install of Stencyl. To do a clean install you have to uninstall/delete your current version of Stencyl, download the latest private release and install it. Do NOT install the latest version of Stencyl over your existing one! After you have done a clean install of Stencyl, use Run > Clean Project. This should fix your issue.

I hope it helps!
.: BuruBuru :.


  • Posts: 24
just remeber to export your projects to not lose them.


  • Posts: 7
Hi Guys! I have  the same problem, my game could not be built.  here is my log.  Thanks for the help!

[LOG] [mergemanifest] Found Deleted Target File
[LOG] [mergemanifest] Merging AndroidManifest files into one.
[LOG] [mergemanifest] Merging manifests from project and 2 libraries.
[LOG]      [echo] Handling aidl files...
[LOG]      [aidl] No AIDL files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling RenderScript files...
[LOG] [renderscript] No RenderScript files to compile.
[LOG]      [echo] ----------
[LOG]      [echo] Handling Resources...
[LOG] Finished building for Android (or errored out): 1
[LOG]      [aapt] Generating resource IDs...
[LOG]      [echo] ----------
[LOG]      [echo] Handling BuildConfig class...
[LOG] [buildconfig] Generating BuildConfig class.
[LOG] -pre-compile:
[LOG] -compile:
[LOG]     [javac] Compiling 18 source files to C:\Users\User\AppData\Roaming\Stencyl\stencylworks\games-generated\Zombie Zombie Terminado\Export\android\bin\bin\classes
[LOG]     [javac] C:\Users\User\AppData\Roaming\Stencyl\stencylworks\games-generated\Zombie Zombie Terminado\Export\android\bin\src\AdWhirl.java:77: error: AdRequest() has private access in AdRequest
[LOG]     [javac]              AdRequest adRequest = new AdRequest();
[LOG]     [javac]                                    ^
[LOG]     [javac] C:\Users\User\AppData\Roaming\Stencyl\stencylworks\games-generated\Zombie Zombie Terminado\Export\android\bin\src\AdWhirl.java:136: error: AdRequest() has private access in AdRequest
[LOG]     [javac]             AdRequest adRequest = new AdRequest();
[LOG]     [javac]                                   ^
[LOG]     [javac] Note: Some input files use or override a deprecated API.
[LOG]     [javac] Note: Recompile with -Xlint:deprecation for details.
[LOG]     [javac] 2 errors
[LOG] C:\Users\User\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:713: The following error occurred while executing this line:
[LOG] C:\Users\User\AppData\Roaming\Stencyl\stencylworks\android-sdk\android-sdk-windows\tools\ant\build.xml:727: Compile failed; see the compiler error output for details.
[LOG] Total time: 1 second