Google Play Services 上的广告声明在 APK 中显示 Admob

Ad Declation On Google Play Services Shows Admob Within APK

Google Play 现在要求您为通过 Google Play 分发的所有应用填写广告声明。我将我的应用程序更新为 "Not ad supported",Google 回复说它在我的应用程序 AdMob 350 中找到了一个广告 SDK。

他们甚至接受了无广告声明,所以它不是必需的,但是有没有办法将它从构建中排除,因为我没有使用它?

代号一在 3.2 之后的版本中默认包含 Google Play 服务。

Play 服务包括许多不错的功能,例如改进的位置、IAP 等。它们还集成了 admob。

您可以通过设置 android.includeGPlayServices=false 构建提示来删除 google 播放服务。

我假设您将整个 google 播放服务作为应用程序的依赖项。

From Google Play Services version 6.5 and beyond you can select which individual APIs you want to use, and import just those ones.

这是完整列表

Google+                         com.google.android.gms:play-services-plus:6.5.+
Google Account Login            com.google.android.gms:play-services-identity:6.5.+
Google Activity Recognition     com.google.android.gms:play-services-location:6.5.+
Google App Indexing             com.google.android.gms:play-services-appindexing:6.5.+
Google Cast                     com.google.android.gms:play-services-cast:6.5.+
Google Drive                    com.google.android.gms:play-services-drive:6.5.+
Google Fit                      com.google.android.gms:play-services-fitness:6.5.+
Google Maps                     com.google.android.gms:play-services-maps:6.5.+
Google Mobile Ads               com.google.android.gms:play-services-ads:6.5.+
Google Panorama Viewer          com.google.android.gms:play-services-panorama:6.5.+
Google Play Game services       com.google.android.gms:play-services-games:6.5.+
Google Wallet                   com.google.android.gms:play-services-wallet:6.5.+
Android Wear                    com.google.android.gms:play-services-wearable:6.5.+
Google Actions
Google Analytics
Google Cloud Messaging          com.google.android.gms:play-services-base:6.5.+

Source of the list

所以我想如果你在删除 com.google.android.gms:play-services-ads (和其他你不需要的)之后添加这些而不是 com.google.android.gms:play-services (整个一堆)你应该能够摆脱与 admob 相关的东西(和其他不需要的东西)。