谷歌似乎在每次发布时都会移动这个类。根据您的 Google Analytics SDK 版本, 的值android:name
会发生变化。这是其他任何人升级到 v2 之后的所有各种版本。
谷歌分析 SDK v2:com.google.analytics.tracking.android.CampaignTrackingReceiver
<receiver
android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
谷歌分析 SDK v3:com.google.android.apps.analytics.AnalyticsReceiver
<receiver
android:name="com.google.android.apps.analytics.AnalyticsReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
谷歌分析 SDK v4:com.google.android.gms.analytics.CampaignTrackingReceiver
<receiver
android:name="com.google.android.gms.analytics.CampaignTrackingReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>