I would like to add the Google library to my project libgdx in Android Studio. Currently I have done:
- opened the SDK manager and downloaded play-services from the SDK manager,
- added the
compilestring inbuild.gradle:
compile 'com.google.android.gms:play-services:8.4.0'
- Clicked on
File -> Project Structure -> choose the projectand added the libraryplay-services 8.4.0.
When I do the sync it gives me this error:
If I click on Install and sync repository project I get an error, this:
Another test:
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.InterstitialAd;
If you manually add this library, after all the steps listed... I do not recognize them and it always fails. How do I add? Thank you.
also tried to Add Google Play Services to my project, but with unsuccess :(
My goal is to use AdMob banner.

