android - 是否可以在 Eclipse 中仅为 GCM 构建 google play 服务库?

标签 android google-play google-cloud-messaging admob google-play-services

我在 Eclipse 中创建了一个 Android 应用程序。当在Google Play商店上传应用程序时, 谷歌在其 Google Play 开发者控制台的定价和分发页面上添加了一个新选项,要求发布商声明是否有广告。我收到以下警告消息。

We detected Ad SDKs in one or more of your active APKs:

version: XXXXX, sdk: AdMob

If your app is serving ads, please change your ads declaration to 'Yes'. Failure to accurately declare the presence of ads is a policy violation and may result in your app's removal from Google Play. You can visit our Help Center to learn more.

我们的应用没有广告,但我们被标记为拥有 AdMob SDK。我认为这是因为我们使用的是 google play 服务库,其中包含对 AdMob 的传递依赖。

是否可以在 eclipse 中仅为 GCM 构建 google play 服务库?

如果是,那么如何?

最佳答案

去 android studio 老兄,Google play 服务有一个单独的 Google Could 消息实例,您可以像这样将其添加到 gradle 中。

compile 'com.google.android.gms:play-services-gcm:x.x.x' 

关于android - 是否可以在 Eclipse 中仅为 GCM 构建 google play 服务库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33797216/

相关文章:

android - GCM 在弃用后是否会为使用 GCM 的老客户提供新 token

Android 模拟器在一段时间后失去互联网连接(不活动或 Activity )

android - 如何获取我的应用程序 APK 的 URL? (Google Play 保护申诉)

Android - Google+ 共享状态失败并且 Google Play 服务崩溃

android - 在 Android 上使用 GCM 推送通知

java - Android GCM 适用于 ICS 但不适用于 Gingerbread

iphone - 我可以开始将 HTML 5 用于我的智能手机应用程序吗?

android - 在 Canvas 上绘制渐变形状

android - 当 Room 没有 LiveData 而不是从 REST API 获取时返回 LiveData 的存储库

Android 应用重定向到自定义商店而不是 Google Play 商店