“Service MeasurementBrokerService is in use” is sh

2019-01-22 21:15发布

I have encountered an issue that GooglePlayServices app is using my application process for their service and also showing the processes count as 2.
I have attached the screenshot for the same. I have no idea why it is happening.
It is taking more memory compare to my app process.


Someone please can help me on this.

enter image description here


Showing two processes hereenter image description here

7条回答
聊天终结者
2楼-- · 2019-01-22 21:52

People who still check this thread for an answer, I have found a solution and posted an answer at:

what is Google Play services MeasurementBrokerService and how to stop it?

I checked that somehow still google AppMeasurement service was running on my device.

I have resorted to using the following approach:

The following stops data collection by firebase.

https://firebase.google.com/support/guides/disable-analytics tells us the following approach

<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />

This alone still can't stop the appMeasurement from initializing.

The second step that has solved is adding the following to the app level gradle file:

configurations {
    all*.exclude group: 'com.google.firebase', module: 'firebase-core'
}

This basically removes all the code that firebase analytics uses.

In case it still doesn't work, make sure that the gradle does not include broad play service dependency

eg: compile

'com.google.android.gms:play-services-location:10.0.1'

instead of

'com.google.android.gms:play-services:10.0.1'

Worst case and i have not tested this as the above solved it for me is:

https://developers.google.com/analytics/devguides/collection/android/v4/advanced

Google should really stop putting unwanted things without the dev's permission IMHO. Hope this helps someone

查看更多
登录 后发表回答