admob 弃用 sdk 以替换为 Ads SDK 7.0.0 - 如何在 google 播放服务中仅升级 admob jar
admob to deprecate sdk to replace with Ads SDK 7.0.0 - how to upgrade just admob jar in google play services
让我向您展示我当前的构建依赖项,以便您理解我的挫败感:
dependencies {
compile 'com.google.android.gms:play-services-ads:8.3.+'
compile 'com.google.android.gms:play-services-wearable:8.3.+'
compile 'com.google.android.gms:play-services-plus:8.3.+'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.onesignal:OneSignal:2.+@aar'
compile 'com.google.android.gms:play-services-analytics:8.3.+'
compile "com.google.android.gms:play-services-location:8.3.+"
compile 'com.google.android.gms:play-services-gcm:8.3.+'
compile 'com.android.support:design:22.2.+'
//for now disable wearApp dependency for PaidRelease builds
wearApp project(':wearable')
compile 'com.squareup:otto:1.3.5'
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile 'com.android.support:support-v4:22.0.+'
compile 'com.android.support:appcompat-v7:23.0.+'
}
这是我的可穿戴依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.2.0'
compile 'com.google.android.gms:play-services-wearable:7.5.0'
}
请注意,在我的应用程序依赖项中,我使用 8.3.+ 作为版本,这意味着仅更新次要版本更改。 Admob 几天前给我写了以下内容:
为确保您的广告在 2016 年 9 月 15 日后继续投放,请升级至 Google Mobile Ads SDK 7.0.0 或更高版本。
他们说一种方法是将整个 google 播放服务更新到 9.0.2。但我没有使用整个 Play 服务依赖项。如您所见,我只获得了我需要保存 space 和方法计数的确切包。
问题:
如果我要替换以下行:
compile 'com.google.android.gms:play-services-ads:8.3.+'
和
compile 'com.google.android.gms:play-services-ads:9.0.2'
我不确定它能否与我依赖的 8.3.+ jar 一起使用。我是否必须将我正在使用的整个 google 播放服务罐也更新为 9.0.+?
您已经在使用 play-services-ads:8.3.+
表示的版本 8.3,远高于 7.0.0 的界限,因此您无需采取任何行动。
让我向您展示我当前的构建依赖项,以便您理解我的挫败感:
dependencies {
compile 'com.google.android.gms:play-services-ads:8.3.+'
compile 'com.google.android.gms:play-services-wearable:8.3.+'
compile 'com.google.android.gms:play-services-plus:8.3.+'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
compile 'com.onesignal:OneSignal:2.+@aar'
compile 'com.google.android.gms:play-services-analytics:8.3.+'
compile "com.google.android.gms:play-services-location:8.3.+"
compile 'com.google.android.gms:play-services-gcm:8.3.+'
compile 'com.android.support:design:22.2.+'
//for now disable wearApp dependency for PaidRelease builds
wearApp project(':wearable')
compile 'com.squareup:otto:1.3.5'
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile 'com.android.support:support-v4:22.0.+'
compile 'com.android.support:appcompat-v7:23.0.+'
}
这是我的可穿戴依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.support:wearable:1.2.0'
compile 'com.google.android.gms:play-services-wearable:7.5.0'
}
请注意,在我的应用程序依赖项中,我使用 8.3.+ 作为版本,这意味着仅更新次要版本更改。 Admob 几天前给我写了以下内容:
为确保您的广告在 2016 年 9 月 15 日后继续投放,请升级至 Google Mobile Ads SDK 7.0.0 或更高版本。
他们说一种方法是将整个 google 播放服务更新到 9.0.2。但我没有使用整个 Play 服务依赖项。如您所见,我只获得了我需要保存 space 和方法计数的确切包。
问题:
如果我要替换以下行:
compile 'com.google.android.gms:play-services-ads:8.3.+'
和
compile 'com.google.android.gms:play-services-ads:9.0.2'
我不确定它能否与我依赖的 8.3.+ jar 一起使用。我是否必须将我正在使用的整个 google 播放服务罐也更新为 9.0.+?
您已经在使用 play-services-ads:8.3.+
表示的版本 8.3,远高于 7.0.0 的界限,因此您无需采取任何行动。