无法解析:本机 Android 上的 com.onesignal:onesignal:3.12.3

Failed to resolve: com.onesignal:onesignal:3.12.3 on Native Android

我正在尝试为我的本机 android 应用程序设置一个信号 sdk 但失败并出现错误:

"ERROR: Failed to resolve: com.onesignal:onesignal:3.12.3"

尝试了其他相关问题的一些解决方案(大多数解决方案都是针对旧版本的)和一个信号网站的故障排除部分,没有任何效果。 我的 gradle 文件

buildscript {
repositories {
    maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
    classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.4, 0.99.99]'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.google.com' }
}
android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.tiringbring.roomdbtest"
    minSdkVersion 19
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    manifestPlaceholders = [
            onesignal_app_id: 'tttttttt-25e9-tttt-tttt-77dc29ce5a08',
            // Project number pulled from dashboard, local value is ignored.
            onesignal_google_project_number: 'REMOTE'
    ]
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation "androidx.room:room-runtime:2.2.0-beta01"
annotationProcessor "androidx.room:room-compiler:2.2.0-beta01"
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.onesignal:onesignal:3.12.3'
}

0.12.4 更改为 0.13.4 对我有用:

classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.13.4, 0.99.99]'

One Signal 的文档中似乎存在拼写错误 Anzy ShQ 评论道。使用 'com.onesignal:OneSignal:3.12.3' 有效。