2

当我打开从 Google Play 商店安装的应用程序时,它会永远冻结。当我使用控制台(adb)安装签名的应用程序时,我没有这个问题。

在我的应用程序日志中,我发现了不定式日志循环:

06-30 11:15:47.553 31306-31306/? I/GoogleConversionReporter: Received install referrer: utm_source=google-play&utm_medium=organic
06-30 11:15:47.532 31306-31306/? I/GoogleConversionReporter: Registering: http://hostname/?referrer=utm_source%3Dgoogle-play%26utm_medium%3Dorganic
06-30 11:15:47.532 31306-31306/? W/GoogleConversionReporter: Failed to parse referrer from: http://hostname/?referrer=utm_source%3Dgoogle-play%26utm_medium%3Dorganic

应用:

4

1 回答 1

1

我找到了理由。

我们在一个类中使用一些安装推荐广播接收器,其中一个Apsalar根据它的文档必须在单独的类中,并且必须首先在 Manifest.xml 中声明该接收器(病态设计)。

我的清单如下所示:

    <!-- Apsalar receiver must be declareted above the rest Install Referrer Receivers !!! -->
    <receiver
        android:name="com.apsalar.sdk.ApsalarReceiver"
        android:exported="true">
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER"/>
        </intent-filter>
    </receiver>

    <!-- Custom receiver to dispatch INSTALL_REFERRER intent-->
    <receiver
        android:name=".InstallReferrerDispatcherReceiver"
        android:enabled="true"
        android:exported="true">
        <intent-filter>
            <action android:name="com.android.vending.INSTALL_REFERRER"/>
        </intent-filter>
    </receiver>
于 2016-07-05T11:57:52.640 回答