Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
Building failed - Gideros Forum

Building failed

Hello! So I've ran into a problem. It's my first time dealing with ads and admob in particular. I tried to add ads to a simple game I've made. Read up on it, works great on the Gideros Player with the ads plugin but when I try to export the app (via Gideros) I run into this:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.google.android.gms:play-services-ads:9.2.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-ads/9.2.0/play-services-ads-9.2.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-ads/9.2.0/play-services-ads-9.2.0.jar
file:/F:/Gideros/Exportate/lbb/adsadsafads/Long Bunny Boi/tmp/app/libs/play-services-ads-9.2.0.jar
file:/F:/Gideros/Exportate/lbb/adsadsafads/Long Bunny Boi/tmp/app/libs/play-services-ads.jar
Required by:
tmp:app:unspecified
> Could not find com.google.android.gms:play-services:9.2.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services/9.2.0/play-services-9.2.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services/9.2.0/play-services-9.2.0.jar
file:/F:/Gideros/Exportate/lbb/adsadsafads/Long Bunny Boi/tmp/app/libs/play-services-9.2.0.jar
file:/F:/Gideros/Exportate/lbb/adsadsafads/Long Bunny Boi/tmp/app/libs/play-services.jar
Required by:
tmp:app:unspecified


Am I missing something obvious? (probably)

This is the part that deals with the ads in my main (I changed the key and ID for this example, but I can assure you that the ones from my code are correct.)

require "ads"
admob=Ads.new("admob")
admob:setKey("ca-app-pub-3940256099942544/1033173712")

admob:loadAd("banner", "ca-app-pub-3940256099942544/6300978111")

admob:addEventListener(Event.AD_RECEIVED , function (event)
print(event.type, "ad received")
if event.type=="banner" then admob:showAd("banner") admob:setAlignment("center","bottom") end
end)


Help?
Tagged:

Comments

Sign In or Register to comment.