谷歌播放服务7.5.0 AnalyticsService NPE onStartCommand

时间:2021-08-27 14:17:43

Has anyone run into this crash when loading Google Play 7.5.0 in their app? I'm seeing about 30 crashes a day now, without any way to reproduce. No particular Android flavour (4.4, 5, 5.1) or device (Samsung, HTC, etc..) is sticking out at me.

有谁在下载谷歌时遇到过这个问题吗?现在我每天看到大约30起车祸,没有任何复制的方法。没有特别的Android味道(4.4、5、5.1)或设备(三星、HTC等)向我突出。

java.lang.RuntimeException: Unable to start service com.google.android.gms.analytics.AnalyticsService@1153b3b0 with null:     java.lang.NullPointerException
   at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2721)
   at android.app.ActivityThread.access$1900(ActivityThread.java:141)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:5116)
   at java.lang.reflect.Method.invokeNative(Method.java)
   at java.lang.reflect.Method.invoke(Method.java:525)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
   at dalvik.system.NativeStart.main(NativeStart.java)
Caused by: java.lang.NullPointerException
   at com.google.android.gms.analytics.AnalyticsService.onStartCommand()
   at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704)
   at android.app.ActivityThread.access$1900(ActivityThread.java:141)
   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353)
   at android.os.Handler.dispatchMessage(Handler.java:99)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:5116)
   at java.lang.reflect.Method.invokeNative(Method.java)
   at java.lang.reflect.Method.invoke(Method.java:525)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
   at dalvik.system.NativeStart.main(NativeStart.java)

This issue has also been posted on the Analytics bug tracker, but I don't expect to see any movement there for a while: https://code.google.com/p/analytics-issues/issues/detail?id=667

这个问题也被发布在分析bug跟踪器上,但我不认为会有一段时间出现任何移动:https://code.google.com/p/analytics-issues/issues/detail?id=667

Here is what is in my Gradle file:

以下是我的评分档案:

compile 'com.google.android.gms:play-services:7.5.0'

And in my AndroidManifest (which I think is verbatim from the Google docs):

在我的安卓系统清单(我认为它是来自谷歌文档的一字不差)中:

    <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" />

1 个解决方案

#1


1  

Try with the latest Google play services SDK version. It has been fixed in Google Play services 9.2.1.

尝试使用最新的谷歌播放服务SDK版本。已在谷歌Play服务9.2.1中修复。

#1


1  

Try with the latest Google play services SDK version. It has been fixed in Google Play services 9.2.1.

尝试使用最新的谷歌播放服务SDK版本。已在谷歌Play服务9.2.1中修复。