“服务MeasurementBrokerService正在使用中”显示在我的申请过程中 [英] "Service MeasurementBrokerService is in use" is showing in my application process

查看:524
本文介绍了“服务MeasurementBrokerService正在使用中”显示在我的申请过程中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,GooglePlayServices应用程序正在使用我的应用程序进程来处理他们的服务,同时也显示进程数为2.

我附加了截图。我不知道为什么会发生。


它比我的应用程序进程占用更多的内存。

$ b

有人请帮助我解决这个问题。



解决方案

<人们仍然检查这个线索的答案,我已经找到了解决方案,并发布了答案:

我检查了某种程度上仍然是谷歌AppMeasurement服务在我的设备上运行。



我采取了以下方法:



以下停止通过Firebase收集数据。

https://firebase.google.com/support/guides/disable-analytics 告诉我们以下方法

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

仅此一项仍然无法阻止appMeasurement初始化。



解决的第二步是将以下内容添加到应用程序级gradle文件中:

  configurations { b $ b all * .exclude group:'com.google.firebase',模块:'firebase-core'
}

这基本上删除了firebase analytics使用的所有代码。



如果仍然无法使用,请确保gradle不会包括广泛播放服务依赖关系

例如:compile

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

而不是

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

最糟糕的情况是,我还没有测试过,因为上面的解决方案对我来说是:

< a href =https://developers.google.com/analytics/devguides/collection/a ndroid / v4 / advancedrel =nofollow noreferrer> https://developers.google.com/analytics/devguides/collection/android/v4/advanced



如果没有开发者的许可,Google应该停止放置不需要的东西。希望这可以帮助别人


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.


Showing two processes here

解决方案

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

这篇关于“服务MeasurementBrokerService正在使用中”显示在我的申请过程中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆