-5

I'm learning React-Native and created an app to show map using react-native-maps library.
I have followed all steps in here but I got this error :

enter image description here

my dependencies is :

dependencies {    
  implementation(project(':react-native-maps')){
      exclude group: 'com.google.android.gms', module: 'play-services-base'
      exclude group: 'com.google.android.gms', module: 'play-services-maps'
  }
  implementation 'com.google.android.gms:play-services-base:10.0.1'
  implementation 'com.google.android.gms:play-services-maps:10.0.1'
  compile project(':react-native-splash-screen')
  compile project(':react-native-vector-icons')
  compile fileTree(dir: "libs", include: ["*.jar"])
  compile "com.android.support:appcompat-v7:23.0.1"
  compile "com.facebook.react:react-native:+"  // From node_modules
  compile project(':react-native-fcm')
  implementation 'com.google.firebase:firebase-core:16.0.1'    
}

How can I solve this?

Kartikey
  • 4,516
  • 4
  • 15
  • 40
kurniawan26
  • 793
  • 4
  • 16
  • 35

1 Answers1

1

You should use SAME version.

implementation 'com.google.android.gms:play-services-base:15.0.0'
implementation 'com.google.android.gms:play-services-maps:15.0.0'
implementation 'com.google.firebase:firebase-core:15.0.0'

You should check Google APIs & Firebase APIs list.

IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198