Failed resolving dependencies due to OneSignal

后端 未结 2 1098
忘掉有多难
忘掉有多难 2021-01-28 23:00

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 som

2条回答
  •  -上瘾入骨i
    2021-01-28 23:40

    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]'
    

提交回复
热议问题