简体   繁体   English

在同一个Android项目中使用不同版本的Firebase和Google Play服务?

[英]Use different versions of Firebase and Google Play Services in same Android project?

Is it possible to use different versions of Firebase and Google Play Services in project? 是否可以在项目中使用不同版本的Firebase和Google Play服务? I need to use 'com.google.android.gms:play-services:6.1.+' and 'com.google.firebase:firebase-core:12.0.1' in the same project. 我需要在同一项目中使用“ com.google.android.gms:play-services:6.1。+”和“ com.google.firebase:firebase-core:12.0.1”。 Now it create version conflict. 现在它创建版本冲突。

Is it possible to exclude 'com.google.android.gms'? 是否可以排除“ com.google.android.gms”?

No, it's not. 不,这不对。 In order to solve this, as specified in the offical documentation on how to Add Firebase to Your Android Project , in Prerequisites section is said: 为了解决此问题,如“如何向您的Android项目中添加Firebase的官方文档”中所述,在“ Prerequisites部分中说:

A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 12.0.1 or higher. 运行Android 4.0(Ice Cream Sandwich)或更高版本以及Google Play服务12.0.1或更高版本的设备。

So in order to solve this, change the version of your Google Play services to last version ( 12.0.1 ). 因此,为了解决此问题,请将您的Google Play服务的版本更改为最新版本( 12.0.1 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM