Open ikishanoza opened 5 years ago
@fechanique please have a look into this ..this is not working even in fresh ionic project I don't why there is no questions regarding the same.. I am stuck here from almost 2 weeks .. please help
@KishanIos007 Open project.properties file available in android folder and replace 15.0.1 with 10.+ Also open android>cordova-plugin-fcm-with-dependecy-updated>*-FCMPlugin.gradle in editor and replace 15.0.1 with 10.+ if it is there.
the same issue
Use only one version for all related libs in your build.gradle(Module: app) file:
dependencies {
compile "com.android.support:support-v4:27.1.0"
compile "com.android.support:support-v4:24.1.1+"
compile "com.google.firebase:firebase-core:10.+"
compile "com.google.firebase:firebase-messaging:10.+"
compile "com.google.android.gms:play-services-analytics:10.+"
compile "com.android.support:support-v4:+"
compile "com.android.support:support-v4:27.+"
}
Then clean the project and rebuild
Inside android > app > cordova-plugin-fcm Edit android-FCMPlugin.gradle Eidt the file to the following
buildscript {
repositories {
maven { url "https://maven.google.com" }
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:+'
classpath 'com.google.gms:google-services:+'
}
}
// apply plugin: 'com.google.gms.google-services'
// class must be used instead of id(string) to be able to apply plugin from non-root gradle file
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
I just added the plugin and got this error.. I tried many possible solution but I am stuck here from last 7 days.. can any one help me out ??? @fechanique
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.+.
Here are my plugin list 👍