![](/img/trans.png)
[英]Cordova android fcm plugin jquery php background notification on click
[英]Cordova FCM on Android
我有這個錯誤,有人幫我解決這個問題嗎?
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
}
對於 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
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.