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.

cannot find symbol import by.chemerisuk.cordova.support.ReflectiveCordovaPlugin.ExecutionThread;

See original GitHub issue

Building gives me the following error:

/home/rtm/repos/nims/blue/cordova/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:9: error: cannot find symbol
import by.chemerisuk.cordova.support.ReflectiveCordovaPlugin.ExecutionThread;
                                                            ^
  symbol:   class ExecutionThread
  location: class ReflectiveCordovaPlugin
/home/rtm/repos/nims/blue/cordova/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:92: error: cannot find symbol
    @CordovaMethod(ExecutionThread.UI)
                                  ^
  symbol:   method value()
  location: @interface CordovaMethod
/home/rtm/repos/nims/blue/cordova/platforms/android/src/by/chemerisuk/cordova/firebase/FirebaseAnalyticsPlugin.java:92: error: cannot find symbol
    @CordovaMethod(ExecutionThread.UI)
                   ^
  symbol:   variable ExecutionThread
  location: class FirebaseAnalyticsPlugin
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

Actually, this error occurs after I manually add an entry to plugins/android.json for the plug-in. For some odd reason, that entry was not added automatically when I added the plugin to the project (it was added to browser.json). If I don’t add that entry, then the app compiles, but window.cordova.plugins.firebase.analytics is not populated, even though the plug-in is referenced correctly in config.xml and package.json if that matters (it is not listed in cordova_plugins.js).

What might account for this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
jBenescommented, Nov 30, 2021

error: package by.chemerisuk.cordova.support does not exist import by.chemerisuk.cordova.support.CordovaMethod I am getting this error when trying to build ionic app in android studio.

Same here

The author has missing dependency here. So installing cordova-support-android-plugin should fix it https://github.com/chemerisuk/cordova-support-android-plugin

@debby12345 @jrcmadushanka

0reactions
marshall86commented, Dec 15, 2022

error: package by.chemerisuk.cordova.support does not exist import by.chemerisuk.cordova.support.CordovaMethod I am getting this error when trying to build ionic app in android studio.

Same here

The author has missing dependency here. So installing cordova-support-android-plugin should fix it https://github.com/chemerisuk/cordova-support-android-plugin

@debby12345 @jrcmadushanka

“cordova-support-android-plugin”: “^2.0.4” fixed the issue. Life saviour 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache cordova Build failed on implementing firebase
Happened to me today as well. In my case, I solved it by changing in the package.json file the firebase messaging version to...
Read more >
Getting error on generating apk file - cordova - Ionic Forum
Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac ... error: cannot find symbol import android.support.v4.app.
Read more >
Moodle in English: Struggling to build
I've been struggling for the last three weeks just trying to get a Moodle Mobile source to build successfully and run on an...
Read more >
How to Resolve The Cannot Find Symbol Error in Java - Rollbar
misspelled identifiers; and; omitted import statements. Cannot Find Symbol vs Symbol Not Found vs Cannot Resolve Symbol. As different Java ...
Read more >
[HealthPlugin] Fails when generating Android app - OutSystems
... /source/platforms/android/src/org/apache/cordova/health/HealthPlugin.java:574: error: cannot find symbol ... Get more help at https://help.gradle.org
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