com.google.android.play:core 已为 core:1.8.0 添加了此注释 - 但电子邮件中的应用程序版本非常旧

问题描述 投票:0回答:1

最近我从谷歌收到这条消息:

com.google.android.play:core has added this note for core:1.8.0:

    Update your Play Core Maven dependency to an Android 14 compatible version! Your current Play Core library is incompatible with targetSdkVersion 34 (Android 14), which introduces a backwards-incompatible change to broadcast receivers to improve user security. As a reminder, from August 31, Google Play requires all new app releases to target Android 14. Update to the latest Play Core library version dependency to avoid app crashes: https://developer.android.com/guide/playcore#playcore-migration
    
    You may not be able to release future versions of your app with this SDK version to production or open testing.
    
    Affected app bundles and APKs:
    
    version: 4194526 (2.0.220729)

在最后一部分中,它提到了我的应用程序版本从 2022 年开始,从那以后我多次更新了应用程序,最后一个版本是从 2024 年开始的。 我检查了android项目依赖关系,唯一的参考是这个:

+--- project :react-native-rate
|    +--- com.facebook.react:react-native:+ -> 0.67.5 (*)
|    \--- com.google.android.play:review:2.0.1
|         +--- com.google.android.gms:play-services-basement:18.1.0 (*)
|         +--- com.google.android.gms:play-services-tasks:18.0.2 (*)
|         \--- com.google.android.play:core-common:2.0.2

如果我在这里看到这个版本就很好。 邮件中提到旧应用程序版本是否有原因,我应该担心这一点吗? 我的应用程序 build.gradle 配置是:

buildscript {
    ext {
        firebaseMessagingVersion = "21.1.0"
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        supportLibVersion = "28.0.0"
        appCompatVersion = "1.1.0"
        supportV4Version = "1.0.0"
        mediaCompatVersion = "1.0.1"
        googlePlayServicesLocationVersion = "19.0.1"
        facebookSdkVersion = "13.1.0"
        ndkVersion = "21.4.7075529"
        kotlin_version = '1.6.10'
    }
android react-native google-play-console android-sdk-tools
1个回答
0
投票

你的 build.gradle 配置文件看起来很好并且是最新的,但仍然做一些检查 -

重新扫描您的项目以了解 Play Core 库的任何其他用法,并确保它们是最新的。

将targetSdkVersion更新为34,我猜这是最新的了

我还注意到,我的一些同事也曾在这个域中收到过类似的邮件,有时,Google 系统更新有关您的应用程序最新版本的信息可能会出现延迟,或者旧版本可能仍然可用在某些分销渠道或某些用户。这就是为什么会出现这个问题,不过没什么好担心的。

只需将依赖项更新到最新版本,并使用这些更新发布应用程序的新版本。如果还有其他情况请告诉我 谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.