I’m getting this error after trying to install Push Notifications with Firebase Cloud Messaging in Ionic 3. I haven’t downloaded the cordova FCM plugin because according to a tutorial I watched, it shouldn’t be necessary.
A problem occurred configuring root project ‘android’.
Could not resolve all dependencies for configuration ':_debugApkCopy'. Could not find com.google.firebase:firebase-messaging:11.0.1. Required by: project : Could not find com.google.firebase:firebase-core:11.0.1. Required by: project :
I have tried all the steps in https://firebase.google.com/docs/android/setup and have updated Google Repistory and services as seen here: ![Latest Android Stuff Installed]http://i.imgur.com/vo1GcHP.png
Build.gradle
apply plugin: 'com.android.application'
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.1.0'
}
}........
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
compile "com.android.support:support-v13:25.1.0"
compile "me.leolin:ShortcutBadger:1.1.17@aar"
compile "com.google.firebase:firebase-messaging:11.0.1"
// SUB-PROJECT DEPENDENCIES END
}.......
if (hasProperty('postBuildExtras')) {
postBuildExtras()
}
apply plugin: 'com.google.gms.google-services'
I was thinking that this error could possibly be due to the version of Firebase installed versus what the project requires. According to the website, the version 11.2.0 is out whereas my project requires 11.0.1. Similarly, I don’t know which version of google-services I should be declaring in my build.gradle file. Please help!