Google 广告使我的应用程序崩溃
Google ads crashes my application
我想在我的应用程序中添加 Google 广告 (AdMob)
现在我的应用程序在添加后一直崩溃。
logcat 说:
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" />
我已经在清单中添加了所有内容
<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" />
有人可以帮我解决吗?
更新 Google Play 服务的编译版本:
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
}
我想在我的应用程序中添加 Google 广告 (AdMob)
现在我的应用程序在添加后一直崩溃。
logcat 说:
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" />
我已经在清单中添加了所有内容
<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" />
有人可以帮我解决吗?
更新 Google Play 服务的编译版本:
dependencies {
compile 'com.google.android.gms:play-services:7.5.0'
}