I want to use admob in a Libgdx project (1.4.1) using Eclipse (Indigo). I use the SDK for Google Play and Google repositry. I added the following to the gradle.build file in an Android project:
project(":android") { apply plugin: "android" configurations { natives } dependencies { compile project(":core") compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion" compile 'com.google.android.gms:play-services:6.+' {more not listed}
This is the result of the Gradle :android:androidDependencies
:
:android:androidDependencies debug \--- com.google.android.gms:play-services:6.1.71 \--- com.android.support:support-v4:20.0.0 debugTest No dependencies release \--- com.google.android.gms:play-services:6.1.71 \--- com.android.support:support-v4:20.0.0
In an Android project, the Gradle dependencies (persisted)
directory, I see
support-v4-20.0.0.aar play-services-6.1.71.aar
However, when I try to create a protected AdView adview
, it does not find the AdView class. When CTRL-Shift-O is pressed, the message 0 imports added
appears. When I manually import the AdView class, it also does not find it.
Can someone point out what I'm doing wrong?
source share