android - Play 服务过期通知需要 Android Oreo 的通知 channel (API 26)

标签 android google-play-services android-8.0-oreo

当 PlayServices 在设备上过时时,PlayServices 本身会发出此通知。这一直有效,直到 Android Oreo (API 26) 需要通知 channel

我在 11.2.0(今天最新)版本中使用 Firebase,因此使用 PlayServices。

当打开应用程序时,PlayServices(不是我的应用程序!)将触发通知 - 或者尝试在针对 API 26 编译时触发通知。


是否有新版本可与 API26 一起使用?有什么我想念的吗?我什至不确定是什么触发了这条消息,因为我的应用没有明确使用 PlayServices。我的猜测是 Firebase(Anylytics、FCM、RemoteConfig 等)正在检查 PlayServices 版本。

最佳答案

此信息可能会有所帮助。

Some Updates to Apps Using Google Play services

<强>2。从 Play 服务依赖项版本 11.2.0 开始,您应用的 compileSdkVersion 必须至少为 26

When you upgrade your app's Play services dependencies to 11.2.0 or later, your app's build.gradle must also be updated to specify a compileSdkVersion of at least 26 (Android O). This will not change the way your app runs. You will not be required to update targetSdkVersion. If you do update compileSdkVersion to 26, you may receive an error in your build with the following message referring to the Android support library:

This support library should should not use a different version (25) than the compileSdkVersion (26).

This error can be resolved by upgrading your support library dependencies to at least version 26.0.0. Generally speaking, the compileSdkVersion of your app should always match the major version number of your Android support library dependencies. In this case, you'll need to make them both 26.

关于android - Play 服务过期通知需要 Android Oreo 的通知 channel (API 26),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45939163/

相关文章:

android - 如果应用程序未运行,Oreo 中的通知将不起作用

android - 有没有人有一个简短的 Android 和 Cloud SQL 示例

java - 如何在listView的每一行中一一显示上传进度条?

Android:如何在 TabWidget 上删除选定的选项卡突出显示颜色和按下时突出显示

android - Genymotion 2.3.0 上的 Google Play 服务和 ARM 翻译

android - 媒体控制通知在 Android O 上发出警报

android - 如何在 Android 上不使用 createBitmap() 和 copy() 将位图复制到另一个位图?

android - Google Play 游戏服务错误代码 400

android - Google Play 服务错误对话框潜在的内存泄漏?

android - 在 Oreo 中共享文件不起作用