我已经在 github 和 SO 上浏览过类似的帖子,但不确定哪个组合会导致冲突。
这种依赖组合在调试版本中有效,但发布版本出现错误 -
Type com.google.android.gms.internal.measurement.zzdb is referenced as an interface from `com.google.android.gms.analytics.AnalyticsJobService`.
Gradle 依赖项和版本:
// Play services dependencies
api deps.playcore
api deps.play_services.analytics
api deps.play_services.auth
api deps.play_services.base
api deps.play_services.core
api deps.play_services.location
api deps.play_services.plus
api deps.play_services.tagmanager
// Firebase dependencies
api deps.firebase.analytics
api deps.firebase.config
api deps.firebase.app_indexing
api deps.firebase.messaging
api deps.firebase.performance
//versions
versions.play_services_analytics = '16.0.4'
versions.play_services_auth = '17.0.0'
versions.play_services_base = '17.1.0'
versions.play_services_core = '17.1.2'
versions.play_services_location = '17.0.0'
versions.play_services_plus = '17.0.0'
versions.play_services_tagmanager = '17.0.0'
versions.play_core = '1.5.0'
versions.firebase_analytics = '17.2.0'
versions.firebase_app_indexing = '19.0.0'
versions.firebase_config = '17.2.0'
versions.firebase_dynamic_links = '19.0.0'
versions.firebase_messaging = '20.0.0'
versions.firebase_perf = '19.0.0'