I have tried create creating a new ionic project with just adding only “cordova-plugin-firebase” and tried to build the package, facing this issue. I think there is something wrong with this plugin.
If possible can you create a new project, add cordova-plugin-firebase and try to build the package. I know it is too much to ask. Only if possible please do, as many people are facing this issue.
I have changed in all places, got a different error this time
here is my prorerties file
target=android-26
android.library.reference.1=CordovaLib
cordova.gradle.include.1=cordova-plugin-firebase/app-build.gradle
cordova.system.library.1=com.google.gms:google-services:11+
cordova.system.library.2=com.google.android.gms:play-services-tagmanager:11+
cordova.system.library.3=com.google.firebase:firebase-core:11+
cordova.system.library.4=com.google.firebase:firebase-messaging:11+
cordova.system.library.5=com.google.firebase:firebase-crash:11+
cordova.system.library.6=com.google.firebase:firebase-config:11+
and the Error is:
What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all dependencies for configuration ‘:_debugApkCopy’.
BUILD FAILED
Total time: 8.075 secs
Could not find any version that matches com.google.gms:google-services:11+.
Versions that do not match:
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
+ 42 more
Required by:
project :
Including adding android-versionCode=“1” to config.xml
What went wrong:
A problem occurred configuring root project ‘android’.
Could not resolve all dependencies for configuration ‘:_debugApkCopy’.
Could not find any version that matches com.google.gms:google-services:11.+.
Versions that do not match:
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
+ 42 more
Required by:
project :
if youre getting more than one library with package name ‘com.google.android.gms.license’ ionic this error,
change all firebase properties in project.properties file from + to 11.+
and change firebase property in android/cordova-firebase-plugin/app-build.gradle file from **+ ** to 11.+.
by doing that i got another error and the Error is:
What went wrong: A problem occurred configuring root project ‘android’. Could not resolve all dependencies for configuration ‘:_debugApkCopy’.
BUILD FAILED
Total time: 8.075 secs Could not find any version that matches com.google.gms:google-services:11+. Versions that do not match: 3.2.0 3.1.2 3.1.1 3.1.0 3.0.0 + 42 more Required by: project
this is got resolved by updating you android SDK libraries Google play licensing library and Google play expansion library Google play license services Google repository
I have updated. But still it shows the below error
A problem occurred configuring root project ‘android’.
Could not resolve all dependencies for configuration ‘:_debugApkCopy’.
Could not find any version that matches com.google.gms:google-services:11.+.
Versions that do not match:
3.2.0
3.1.2
3.1.1
3.1.0
3.0.0
+ 42 more
Required by:
project