Google Analitycs服务崩溃

时间:2016-02-10 15:28:54

标签: android google-analytics

java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@43d42298 (pid=819) when starting service Intent { act=com.google.android.gms.analytics.ANALYTICS_DISPATCH cmp=com.nobelglobe.nobelapp/com.google.android.gms.analytics.AnalyticsService }
at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at android.app.ActivityManagerProxy.startService(ActivityManagerNative.java:3222)
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1838)
at android.app.ContextImpl.startService(ContextImpl.java:1811)
at android.content.ContextWrapper.startService(ContextWrapper.java:505)
at com.google.android.gms.analytics.internal.zzb.void zziL()(Unknown Source)
at com.google.android.gms.analytics.GoogleAnalytics.void dispatchLocalHits()(Unknown Source)
at com.google.android.gms.analytics.ExceptionReporter.void uncaughtException(java.lang.Thread,java.lang.Throwable)(Unknown Source)
at org.acra.ErrorReporter.void endApplication(java.lang.Thread,java.lang.Throwable)(ErrorReporter.java:457)
at org.acra.ErrorReporter.java.lang.ref.WeakReference access$002(org.acra.ErrorReporter,java.lang.ref.WeakReference)(ErrorReporter.java:81)
                          android.app.Application access$400(org.acra.ErrorReporter)
                          boolean access$1102(org.acra.ErrorReporter,boolean)
                          android.content.Intent access$1200(org.acra.ErrorReporter,java.lang.String,org.acra.ErrorReporter$ReportBuilder)
                          void access$1300(org.acra.ErrorReporter,java.lang.Thread,java.lang.Throwable)
                          void access$1400(org.acra.ErrorReporter,org.acra.ErrorReporter$ReportBuilder)
at org.acra.ErrorReporter$5.void run()(ErrorReporter.java:851)

我们的应用中发生此次崩溃,每天发生超过10000次。不能在我们拥有的任何设备上复制,它由崩溃处理程序报告。

我们已经按照基本实现描述了here

<!--
             Optionally, register AnalyticsReceiver and AnalyticsService to support background
              dispatching on non-Google Play devices
        -->
         <receiver
             android:name="com.google.android.gms.analytics.AnalyticsReceiver"
             android:enabled="true">
             <intent-filter>
                <action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH"/>
             </intent-filter>
         </receiver>


         <service
             android:name="com.google.android.gms.analytics.AnalyticsService"
             android:enabled="true"
             android:exported="false"/>


        <!--
             Optionally, register CampaignTrackingReceiver and CampaignTrackingService to enable
             installation campaign reporting
        -->
        <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>

        <service android:name="com.google.android.gms.analytics.CampaignTrackingService" />

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

        <meta-data
            android:name="com.google.android.gms.analytics.globalConfigResource"
            android:resource="@xml/analytics_global_config" />

现在,我发现行动com.google.android.gms.analytics.ANALYTICS_DISPATCH与AnalyticsService一起使用,可选择支持非Google Play设备上的背景调度,我想我们可以选择不支持,并且可能会清除此问题。

以前有人遇到过这个问题吗?

0 个答案:

没有答案