Skip to content Skip to sidebar Skip to footer

Failed Resolving Dependencies Due To Onesignal

I found the following question: Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0] People marked it as duplicate (which is wrong ! see next sentence) or wrote someth

Solution 1:

The error happens because you have some conflicted library in your dependency.

As in the documentation, it says:

Automatic Dependencies OneSignal automatically adds the following dependencies;

  • com.google.android.gms - Version 11
  • com.android.support - Version 26

Please makes sure your project matches these versions if you run into a mismatch version error.

For more details see the All gms/firesbase libraries must use the exact same version specification section.

So, you need to remove or use the same dependencies in your project, something like this:

compile'com.android.support:appcompat-v7:26.0.+'compile'com.android.support.constraint:constraint-layout:1.0.2'compile'com.google.firebase:firebase-auth:11.0.+'compile'com.google.firebase:firebase-database:11.0.+'compile'com.firebaseui:firebase-ui-database:1.1.0'compile'com.android.support:design:26.0.+'compile'com.onesignal:OneSignal:[3.6.0, 3.99.99]'

Solution 2:

Remove 'f' from dependency. also, use [ brackets instead of ). its a typo.

    dependencies {
    compile'com.onesignal:OneSignal:[3.6.0, 3.99.99]'
}

and this code in your root gradle file

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

Post a Comment for "Failed Resolving Dependencies Due To Onesignal"