Just upgrade to latest library and get this error.Also I couldn't find firebase-invites:16.0.1 according to this page
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/f9728126-88e6-4951-b253-fc1e9909c6bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
dependencies {
def work_version = "1.0.0-alpha02"
def lifecycle_version = "1.1.1"
// Including jars
implementation fileTree(include: ['*.jar'], dir: 'libs')
// Compiling external modules
implementation project(':ArLabsUtils')
implementation project(':Appirater')
implementation project(':geographiclib')
implementation project(':LVL')
// Advertising network only for free version
freeImplementation fileTree(dir: 'libs/ads', include: ['*.jar'])
amzfreeImplementation fileTree(dir: 'libs/ads', include: ['*.jar'])
huaImplementation fileTree(dir: 'libs/ads', include: ['*.jar'])
// To enable for minSdk < 21
implementation 'com.android.support:multidex:1.0.3'
// Including external libraries
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.10.0'
implementation 'com.github.kizitonwose.colorpreference:support:1.0.2'
implementation 'com.android.support:gridlayout-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.android.gms:play-services-base:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.android.support:percent:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:preference-v14:27.1.1'
implementation 'com.android.support:support-vector-drawable:27.1.1'
implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-ads:15.0.1'
implementation 'com.google.firebase:firebase-invites:16.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation "android.arch.work:work-runtime:$work_version"
implementation "android.arch.work:work-firebase:$work_version"
implementation "android.arch.lifecycle:extensions:$lifecycle_version"
// MapBox
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.0'
implementation 'com.opencsv:opencsv:4.0'
implementation ("com.github.bumptech.glide:glide:4.6.1@aar") {
transitive = true
}
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
implementation 'com.wdullaer:materialdatetimepicker:3.5.1'
configurations.all {
exclude group: 'com.android.support', module: 'support-v13'
}
}
apply plugin: 'com.google.gms.google-services'
buildscript {
repositories {
google()
jcenter()
maven{ url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-invites:16.0.0'
In order to fix the error, you have to add one more dependency:
implementation 'com.google.android.gms:play-services-appinvite:16.0.1'
For me that solves it, hope it works for you too!- Sam
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1b8f3edd-4517-4e44-afc5-aa4aded0a267%40googlegroups.com.
implementation 'com.google.android.gms:play-services-appinvite:16.0.4' as I am using implementation 'com.google.firebase:firebase-core:16.0.4' instead of 16.0.1
Helped me!