arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1k stars 1.55k forks source link

Errors with Cordova-firebase-plugin #1096

Open krishnakanthpps opened 4 years ago

krishnakanthpps commented 4 years ago

Describe the bug Errors in building Cordova App.

First Error : Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']

For input string: "+"

After I change all versions to "+", I get second error.

Second Error : * What went wrong: Execution failed for task ':app:fabricGenerateResourcesDebug'.

Crashlytics Developer Tools error.

I went to platforms/android/cordova-firebase-plugin/App-build.gradle and commented the io,fabric and then I got the third error.

Third error : \platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginInstanceIDService.java:17: error: method does not override or implement a method from a supertype @Override ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 10 errors

So.. is there a good firebase-plugin for android which can be used with minimal errors?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Console Logs If applicable, provide console logs showing the errors being reported.

Plugin Version Run cordova plugin list to find out what version of cordova-plugin-firebase you are running with

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

ghost commented 4 years ago

Same issue here.

LiamKarlMitchell commented 4 years ago

Same with Ionic trying to build for android.

How to fix this I don't want to register an account and use Fabric Crashlytics I want to use Firebase Crashlytics.

Is there a way to disable Fabric?

cordova plugin list

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
krishnakanthpps commented 4 years ago

@LiamKarlMitchell I think Firebase and Crashlytics are different. There is a place inside the build.gradle file which points to io.fabric, which you comment this error would be gone.

But since you have the firebase plugin, you should have the Crashlytics still working without any issues.

himanshu-itmca commented 4 years ago

Same issue here.