According to the instructions for introducing admob, you need to import the library as an application:

2.1 Open Eclipse and import the library as an application at:

FOLDER_С_SDK \ sdk \ extras \ google \ google_play_services \ libproject \ google-play-services_lib

How to do it for android studio?

    1 answer 1

    Google Repository, Google Play services must be installed in the SDK.
    Open the build.gradle of the application module and add this to dependencies:

    compile 'com.google.android.gms:play-services:6.5.87' 

    It should turn out like this:

     dependencies { ... compile 'com.google.android.gms:play-services:6.5.87' } 

    After that, click Sync Now at the top right.

    PS Version may differ depending on the version you have installed. I have the last one at the moment (6.5.87).

    • I also have compile 'com.google.android.gms: play-services: 6.5.87' Why isn’t it automatically updated, should it always be updated manually? - Gennady