Reputation: 1881
I am trying to update all firebase libraries I have in my Android project to 32.3.1.
implementation platform('com.google.firebase:firebase-bom:32.3.1')
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-config-ktx'
implementation 'com.google.firebase:firebase-perf-ktx'
I cannot make it work to a later version than the 32.1.1. The issue I have is this:
Could not find any version that matches com.google.firebase:firebase-sessions:[15.0.0, 16.0.0).
Versions that do not match:
- 1.0.2
- 1.0.1
- 1.0.0
Required by:
project :app > com.google.firebase:firebase-crashlytics:18.4.3
project :app > com.google.firebase:firebase-perf:20.4.1
The weird thing is that the latest firebase-sessions
version is 1.0.2 as it is mentioned here.
Is there any way to make it work?
Upvotes: 0
Views: 1177
Reputation: 21
I aslo removed these lines from my gradle files
//build.gradle (project)
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
//build.gradle (app module)
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.13.4'
And I followed the official guide for the new setup of the sdk https://documentation.onesignal.com/docs/android-sdk-setup
And this new setup is very simple, now you just have to add this line
//build.gradle (app module)
implementation 'com.onesignal:OneSignal:[5.0.0, 5.99.99]'
Upvotes: 0
Reputation: 1881
Although this answer here is relevant to Flutter this made me to fix the issue. Also the OneSignal official docs mention that the gradle plugin was deprecated.
So, I removed these two lines from my project:
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
...
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.13.4'
Upvotes: 0