0
votes

I want to add Google Ads (AdMob) in my application

Now I my app keeps crashing after adding it.

The logcat says:

The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 6587000 but found 7571000. You must have the following declaration within the element: < meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

I've added everything in the manifest

<application
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Black.NoTitleBar">
       <meta-data 
       android:name="com.google.android.gms.version" 
       android:value="@integer/google_play_services_version" />

Can someone help me fixing it?

1

1 Answers

1
votes

Update your compile version of Google Play Services:

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