播放安装引荐库

Play Install Referrer Library

Hello Google Play Developer,

We recently announced that we’ll be deprecating the install_referrer intent broadcast mechanism. Because one or more of your apps uses this intent to track referrals, we wanted to ensure you make the switch before March 1, 2020. After this date, new versions of the Play Store app will no longer broadcast the install_referrer intent after app installs.

Action required

Migrate to the Play Install Referrer API to track your app installs for the following apps and/or games.

任何关于此的解决方案将不胜感激。提前致谢。

如果您使用的是用于 Firebase Analytics 的 firebase-core SDK,则将其删除并排除 play-services measurement sdk。

根据Firebase SDK release notes

No longer add the Android library com.google.firebase:firebase-core.
This SDK included the Firebase SDK for Google Analytics. 
Now, to use Analytics (or any of the Firebase products that require or recommend the use of Analytics), 
you need to explicitly add the Analytics dependency:

implementation ("com.google.firebase:firebase-analytics:17.2.1"){
    exclude group: 'com.google.android.gms', module: 'play-services-measurement'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-impl'
}

这可能会解决您的问题。

就我而言,我在我的合并清单文件中发现了此来源的用法:"play-services-measurement:17.2.0",其中包括权限 BIND_GET_INSTALL_REFERRER_SERVICE,这是一个问题的原因。 为了解决这个问题,我们可以明确排除不推荐使用的模块,这个修复对我有用:

implementation ("com.google.firebase:firebase-core:17.2.0"){
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-api'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-impl'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-sdk-api'
    exclude group: 'com.google.android.gms', module: 'play-services-measurement-base'
}

为了测试,您可以检查在 gradle 同步

之后,权限 BIND_GET_INSTALL_REFERRER_SERVICE 是否仍然存在于最终合并的清单文件中