【问题标题】:Cordova FCM on AndroidAndroid 上的 Cordova FCM
【发布时间】:2018-12-24 08:51:35
【问题描述】:

我有这个错误,有人帮我解决这个问题吗?

Error:Execution failed for task ':app:processDebugGoogleServices'.

请通过更新 google-services 插件的版本来解决版本冲突(有关最新版本的信息可在 https://bintray.com/android/android-tools/com.google.gms.google-services/ 获得)或将 com.google.android.gms 的版本更新到 10+ .

   dependencies {
      implementation fileTree(include: '*.jar', dir: 'libs')
      // SUB-PROJECT DEPENDENCIES START
        implementation(project(path: ":CordovaLib"))
        compile "com.android.support:support-v4:24.1.1+"
        compile "com.soundcloud.android:android-crop:1.0.0@aar"
        compile "com.google.android.gms:play-services-maps:15.0.1"
        compile "com.google.android.gms:play-services-location:15.0.1"
        compile "com.android.support:support-core-utils:27.+"
        compile "com.android.support:support-annotations:27.+"
        compile "com.android.support:appcompat-v7:23+"
        compile "com.google.firebase:firebase-core:10+"
        compile "com.google.firebase:firebase-messaging:10+"
        // SUB-PROJECT DEPENDENCIES END
    }

【问题讨论】:

    标签: android firebase cordova ionic-framework


    【解决方案1】:

    对于 SDK 版本 15 及更低版本,所有 Firebase 和 Play 服务 SDK 的版本必须相同。所以:

    dependencies {
      implementation fileTree(include: '*.jar', dir: 'libs')
      // SUB-PROJECT DEPENDENCIES START
        implementation(project(path: ":CordovaLib"))
        compile "com.android.support:support-v4:24.1.1+"
        compile "com.soundcloud.android:android-crop:1.0.0@aar"
        compile "com.google.android.gms:play-services-maps:15.0.1"
        compile "com.google.android.gms:play-services-location:15.0.1"
        compile "com.android.support:support-core-utils:27.+"
        compile "com.android.support:support-annotations:27.+"
        compile "com.android.support:appcompat-v7:23+"
        compile "com.google.firebase:firebase-core:15.0.1"
        compile "com.google.firebase:firebase-messaging:15.0.1"
        // SUB-PROJECT DEPENDENCIES END
    }
    

    【讨论】:

      猜你喜欢
      • 2017-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-24
      • 1970-01-01
      相关资源
      最近更新 更多