Android NativeScript中的OneSignal Google Play服务错误

时间:2019-04-01 18:58:54

标签: android onesignal

我尝试运行nativescript-onsignal插件,但是它始终向我显示onsignal仪表板用户未能订阅的错误。 com.google.android.gcm冲突错误。

我删除了Firebase插件,并尝试onesignal仍然收到错误的Google服务版本15.0.1

android {
  configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
    def requested = details.requested
    if (requested.group == 'com.android.support') {
        if (!requested.name.startsWith("multidex")) {
            details.useVersion '27.0.2'
        }
     }

   }
} 

  defaultConfig {  
    generatedDensities = []
    applicationId = "com.android.com"
    manifestPlaceholders = [
        manifestApplicationId: "${applicationId}",
          onesignal_app_id: 'XXXXXXXX',
          // Project number pulled from dashboard, local value is ignored.
          onesignal_google_project_number: 'XXXXXXXX'
      ]
  }
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  

   project.ext {
    googlePlayServicesVersion = "15.0.1"
}
dependencies {
    compile 'com.google.android.gms:play-services-gcm:15.0.1';
    compile 'com.android.support:design:27.1.0';
}

0 个答案:

没有答案