所有图书馆都需要包含的Firebase和地图?

时间:2016-06-21 06:31:11

标签: android firebase google-play-services

我有推送通知,因此我将使用Firebase。我也有地图包含在我的项目中,因为我们都使用谷歌播放服务库。由于谷歌游戏服务库是一个巨大的。我只想要map和firebase的特定库。有人能给我一个答案吗?

1 个答案:

答案 0 :(得分:1)

// FOR GOOGLE MAPS
// to use maps modules to your app
compile 'com.google.android.gms:play-services-maps:8.3.0'
// for more advanced features to add to your maps
compile 'com.google.maps.android:android-maps-utils:0.4'

有关adding a map to an Android app

的更详细步骤
// FOR FIREBASE
// to use the new firebase cloud messaging/notifications
compile 'com.google.firebase:firebase-messaging:9.0.0'
// for firebase analytics (recommended but optional)
compile 'com.google.firebase:firebase-core:9.0.0'

有关更多可用的firebase库,请访问documentation here

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

在使用API​​之前一定要update the IDE and Tools