I want to use both firebase and google play services dependencies. But it causes some conflictings. When i add the play services dependency, then firebase dependency does not work. Do you know how to use both dependencies at the same time? Thank you.
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.google.firebase:firebase-messaging:12.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.google.android.gms:play-services:11.8.0'
Change this:
implementation 'com.google.android.gms:play-services:11.8.0'
into this:
implementation 'com.google.android.gms:play-services:12.0.1'