【问题标题】:Will my app remove from google play on May 05 if I target SDK 29 and use requestLegacyExternalStorage = true?如果我以 SDK 29 为目标并使用 requestLegacyExternalStorage = true,我的应用会在 5 月 5 日从 Google Play 中删除吗?
【发布时间】:2021-05-10 19:24:31
【问题描述】:

我收到一条警告消息,上面写着,

我们检测到您的应用在您的 1 个或多个 app bundle 或 APK 的清单文件中包含 requestLegacyExternalStorage 标志。

我的目标是 android 10 并使用 requestLegacyExternalStorage = true

  1. 我的应用会在 5 月 5 日从 google play 中移除吗?
  2. 我是否需要在 5 月 5 日之前从清单中删除 requestLegacyExternalStorage 标志?
  3. 是否需要更新以将 SDK 目标设置为 30
  4. 如果我使用 target sdk 29 和requestLegacyExternalStorage = true,是否需要进行其他更改?

【问题讨论】:

    标签: google-play google-play-console


    【解决方案1】:

    我已写信给 Google,得到以下答复:

    Thank you for contacting Google Play Developer Support!
    
    You are notified because your app supports devices running Android 11+. 
    
    Please note that the targetSdkVersion fields means that your app works best on that level of API. It doesn't mean that the App will only run from that version and below. For more information, please refer to this developer documentation page.
    
    To resolve this issue, please review the solutions given in the policy update email.
    
    I hope this clarifies your concern. If you have any other questions about using the Play Console, please let me know.
    

    所以,据我了解,我们应该添加 ma​​xSdkVersion=29 以不支持 Android 11+,Google 不会删除我们的应用

    【讨论】:

    • 你使用MANAGE_EXTERNAL_STORAGE权限吗?
    • 您当前的目标 SDK 级别是多少?
    • 不,我不使用 MANAGE_EXTERNAL_STORAGE 权限。我的目标 SDK 级别是 29。所以,我很困惑,因为如果我不使用 MANAGE_EXTERNAL_STORAGE 和 targetSDK=29 为什么我应该为此做额外的事情
    【解决方案2】:

    在 Android 11 上运行但以 Android 10(API 级别 29)为目标的应用仍然可以请求 requestLegacyExternalStorage 属性。此标志允许应用程序暂时选择退出与范围存储相关的更改,例如授予对不同目录和不同类型媒体文件的访问权限。在您将应用更新为面向 Android 11 后,系统会忽略 requestLegacyExternalStorage 标志。

    https://developer.android.com/about/versions/11/privacy/storage#scoped-storage

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-06
      • 1970-01-01
      • 2015-01-12
      • 1970-01-01
      • 1970-01-01
      • 2022-08-17
      相关资源
      最近更新 更多