Hi, i’m having a real bad problem related to admob. I released my game some days ago, and im still updating it with more stuff (translations, minor bug fixes, etc) whenever i release a new version. Today i’ve upload a new apk, and when it was ready to download, i tried it just to find that whenver the interstitial ad gets called (every 3 levels played) the game CRASHES. I tried another game i have that was built some months ago but updated with the new admobv2 and it works fine whenver the ad appears.
I also want to add that the game was perfectly showing ads in the previous version (that i uploaded 2 days ago), and now i tried building every previous version i had (5 in total) and all of them gave the same error, even the first one, and obviously the add was showing just fine in those, so i guess it’s an error when Corona’s building servers add the admob library.
Here is the bug report i’m getting:
java.lang.NoSuchMethodError: com.google.android.gms.internal.ah.\<init\> at com.google.android.gms.ads.InterstitialAd.\<init\>(Unknown Source) at CoronaProvider.ads.admob.AdMobAd$2.run(AdMobAd.java:165) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)
here is my build.settings puglin’s config:
plugins = { ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs" },
and here is the game: https://play.google.com/store/apps/details?id=com.sector9games.cakegame
I’ll just remove the ads and upload a new version because i don’t want people to uninstall the game in this critical phase (app release) but it’s obviously not the best idea since i get no income.
I’ve read some solutions for this error, but all of them were native java related so the solution was just “just add the missing libraries”, sadly i dont know if this is possible for Corona or if it is, i dont know how to do it.
Please someone from Corona give me a solution, it’d be very appreciated.
Thanks for reading.