cannot find symbol import by.chemerisuk.cordova.support.ReflectiveCordovaPlugin.ExecutionThread;
See original GitHub issueBuilding 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:
- Created 5 years ago
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃