Reputation: 4528
When updating google library version from 9.6.0 to 11.8.0 it creates so many issue, I am not able to compile the code.
Please see the below module Gradle file dependencies
compile 'com.android.support:appcompat-v7:26.0.2'
compile 'com.android.support:support-v4:27.0.1'
compile 'com.android.support:support-v13:27.0.1'
compile 'com.android.support:design:27.0.1'
compile 'com.android.support:cardview-v7:27.0.1'
compile 'com.android.support:recyclerview-v7:27.0.1'
compile 'com.android.support:customtabs:27.0.1'
//noinspection GradleCompatible
compile 'com.google.android.gms:play-services-analytics:11.8.0'
compile 'com.google.android.gms:play-services-maps:11.8.0'
compile 'com.google.android.gms:play-services-location:11.8.0'
compile 'com.google.firebase:firebase-crash:11.0.4'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
and below is the project gradle depenmdencies
dependencies {
// classpath 'com.android.tools.build:gradle:2.0.0-rc1'
// classpath 'com.google.firebase:firebase-plugins:1.1.1'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
classpath 'com.android.tools.build:gradle:3.1.0-alpha06'
classpath 'com.google.gms:google-services:3.1.0'
classpath "io.realm:realm-gradle-plugin:3.0.0"
}
Upvotes: 0
Views: 92
Reputation: 12953
All google libraries version should have same version:
Change:
compile 'com.android.support:appcompat-v7:26.0.2'
to:
compile 'com.android.support:appcompat-v7:27.0.1'
and:
compile 'com.google.firebase:firebase-crash:11.0.4'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
to:
compile 'com.google.firebase:firebase-crash:11.8.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'
compile 'com.google.firebase:firebase-core:11.8.0'
Upvotes: 2