question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Falied version 5.0.1

See original GitHub issue

After upgrading to version 5.0.1 error appears on the console

Error

> cordova build android --debug
[cordova] /.../platforms/android/app/src/main/java/by/chemerisuk/cordova/firebase/FirebaseMessagingPlugin.java:89: error: cannot find symbol
[cordova]         firebaseMessaging.deleteToken().addOnCompleteListener(cordova.getActivity(), task -> {
[cordova]                          ^
[cordova]   symbol:   method deleteToken()
[cordova]   location: variable firebaseMessaging of type FirebaseMessaging
[cordova] /.../platforms/android/app/src/main/java/by/chemerisuk/cordova/firebase/FirebaseMessagingPlugin.java:101: error: cannot find symbol
[cordova]             firebaseMessaging.getToken().addOnCompleteListener(cordova.getActivity(), task -> {
[cordova]                              ^
[cordova]   symbol:   method getToken()
[cordova]   location: variable firebaseMessaging of type FirebaseMessaging
[cordova] Note: Some input files use or override a deprecated API.
[cordova] Note: Recompile with -Xlint:deprecation for details.
[cordova] Note: Some input files use unchecked or unsafe operations.
[cordova] Note: Recompile with -Xlint:unchecked for details.
[cordova] 2 errors
[cordova] 
[cordova] FAILURE: Build failed with an exception.
[cordova] 
[cordova] * What went wrong:
[cordova] Execution failed for task ':app:compileDebugJavaWithJavac'.
[cordova] > Compilation failed; see the compiler error output for details.
[cordova] 
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[cordova] 
[cordova] * Get more help at https://help.gradle.org
[cordova] 
[cordova] BUILD FAILED in 1s
[cordova] Command failed with exit code 1: .../platforms/android/gradlew cdvBuildDebug -b /.../platforms/android/build.gradle

Ionic Info

Ionic:
   Ionic CLI                     : 6.12.2 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.5.2
   @angular-devkit/build-angular : 0.1100.4
   @angular-devkit/schematics    : 11.0.4
   @angular/cli                  : 11.0.4
   @ionic/angular-toolkit        : 3.0.0

Cordova:
   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 36 other plugins)

Utility:
   cordova-res : not installed
   native-run  : 1.3.0

System:
   Android SDK Tools : 26.1.1 (/home/sabadi/Android/Sdk)
   NodeJS            : v10.19.0 (/usr/bin/node)
   npm               : 6.14.9
   OS                : Linux 5.4

Cordova Plugins

cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.1.2 "Permissions"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx"
cordova-plugin-app-version 0.1.12 "AppVersion"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
cordova-plugin-calendar 5.1.5 "Calendar"
cordova-plugin-camera 5.0.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-enable-multidex 0.2.0 "Enable Multidex"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-firebase-analytics 5.0.0 "FirebaseAnalyticsPlugin"
cordova-plugin-firebase-messaging 5.0.1 "FirebaseMessagingPlugin"
cordova-plugin-geolocation 4.1.0 "Geolocation"
cordova-plugin-inappbrowser 4.1.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-media-capture 3.0.3 "Capture"
cordova-plugin-media 5.0.3 "Media"
cordova-plugin-nativegeocoder 3.4.1 "NativeGeocoder"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-request-location-accuracy 2.3.0 "Request Location Accuracy"
cordova-plugin-screen-orientation 3.0.2 "Screen Orientation"
cordova-plugin-speechrecognition 1.1.2 "Speech Recognition"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-streaming-media 2.3.0 "StreamingMedia"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 6.0.2 "SocialSharing"
cordova-sqlite-storage 5.1.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-android-plugin 1.0.2 "cordova-support-android-plugin"
cordova-support-google-services 1.4.1 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-barcodescanner 8.1.0 "BarcodeScanner"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.5 "Launch Navigator"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AashishChakravartycommented, Jan 26, 2021

@vagnersabadi this resolved after installing cordova-plugin-androidx and cordova-plugin-androidx-adapter plugins

1reaction
chemerisukcommented, Dec 16, 2020

@vagnersabadi you are trying to use too old version of Firebase Android SDK. Check value for ANDROID_FIREBASE_MESSAGING_VERSION

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed at the sqlite3@5.0.1 install script. · Issue #1424 - GitHub
This is the full error message I am getting when trying to install sqlite3. $ npm i sqlite3 sqlite3@5.0.1 install ...
Read more >
ng serve erroring after NPM 5.0.1 update: Invalid Version
It seems the error message regarding incorrect version was not at all related to the root cause. Could you try clearing your node_modules...
Read more >
Building custom version - 0.43.2 - Metabase Discussion
Hello, I am trying to built custom version of metabase - I used ... Step failed: Running build steps for Community (OSS) Edition...
Read more >
Gradle 5.0 Release Notes
Gradle Release Notes. Version 5.0. The Gradle team is excited to announce Gradle 5.0. This release features a production-ready Kotlin DSL, ...
Read more >
Build is not working and I don't know why - Support
I already set the build command to CI='' npm run build, I updated all the packages (I think) so I'm not sure what's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found