Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
google Play Services 15.0.0及更高版本中缺少com.google.android.gms.internal.measurement_Android_Google Play Services - Fatal编程技术网

google Play Services 15.0.0及更高版本中缺少com.google.android.gms.internal.measurement

google Play Services 15.0.0及更高版本中缺少com.google.android.gms.internal.measurement,android,google-play-services,Android,Google Play Services,Play Services使用从15.0.0版开始的版本。将Play Services analytics更新到15.0.0或更高版本会在我们的应用程序中产生编译时错误,因为包com.google.android.gms.internal.measurement已被删除。AppMeasurementInstallReferrerReceiver以前在此包中。我们正在JobIntentService中使用AppMeasurementInstallReferrerReceiver与Google An

Play Services使用从15.0.0版开始的版本。将Play Services analytics更新到15.0.0或更高版本会在我们的应用程序中产生编译时错误,因为包com.google.android.gms.internal.measurement已被删除。AppMeasurementInstallReferrerReceiver以前在此包中。我们正在JobIntentService中使用AppMeasurementInstallReferrerReceiver与Google Analytics和Firebase Analytics共享安装referrer的意图。JobIntentService被用来处理Android O的后台限制,工作被自定义安装的广播接收器排队。JobIntentReceiver为ActivationTrackingReceiver和AppMeasurementInInstallReferrerReceiver调用onReceive。尚未更新AppMeasurementInstallReferrerReceiver的。创建一个JobIntentReceiver来处理活动跟踪接收者和AppMeasurementInstallReferrerReceiver是必要的,因为在清单中只有一个安装接收者可以与com.android.vending.install\u REFERRER意向过滤器一起使用。有没有办法解决这个问题,使我们能够保留两个安装引用者?

您的依赖关系树似乎没有自动填充

确保您同时拥有firebase analytics和firebase analytics impl

更好的是,使用firebase core。它将自动拉入依赖项


这是为了什么?当你在做的时候,检查一下这个?AppMeasurementInstallReferrerReceiver和CampaignTrackingReceiver是Google Analytics所必需的。Barrett A-我的项目目前包含play services Analytics和firebase messaging。如果我添加firebase core,则会出现以下错误:库com.google.android.gms:play services measurement base正被各种其他库[[16.0.0,16.0.0],[16.0.2,16.0.2]]请求,但解析为16.0.2。禁用插件并使用./gradlew:app:dependencies检查依赖关系树。删除play services analytics可以解决该错误,但问题是无法解决CampaignTrackingReceiver。