简体   繁体   中英

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? 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. Now it create version conflict.

Is it possible to exclude '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:

A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 12.0.1 or higher.

So in order to solve this, change the version of your Google Play services to last version ( 12.0.1 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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