Failed resolving dependencies due to OneSignal

后端 未结 2 1157
忘掉有多难
忘掉有多难 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-28 23:42

    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"
            }
        }
    }
    

提交回复
热议问题