Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rtm opened this issue Jun 17, 2018 · 8 comments

Comments

@rtm
Copy link

rtm commented Jun 17, 2018

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?

@rtm
Copy link
Author

rtm commented Jun 19, 2018

Closing, as I see the problem is lack of support under Cordova Android 6.3 (which I was pinning to due some other compatibility problems, namely with cordova-plugin-universal-links plugin, but that's another problem).

@rtm rtm closed this as completed Jun 19, 2018
@debby12345
Copy link

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.

@jrcmadushanka
Copy link

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

@jBenes
Copy link

jBenes commented 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

@Gladiatornoshield
Copy link

Hi, I am also experiencing this issue when i tried building on my macbook. on Windows pc it does not have this error.
I tried installing this cordova-support-android-plugin but no luck. my biggest challenge is that when i have to build for android i have to copy files to windows machine then build and deploy from windows but ios everything is fine.

@muhammad-gul-dm
Copy link

muhammad-gul-dm commented Nov 8, 2022

Hi,
I have the same issue, as I have installed cordovaFirebaseAuthenticaitonPlugin and its working fine in Xcode but in Android studio it throws the following error:
error: package by.chemerisuk.cordova.support does not exist
import by.chemerisuk.cordova.support.CordovaMethod;
^
I am trying to install how to install https://github.com/chemerisuk/cordova-support-android-plugin in Ionic with Angular where I am using Capacitor.
Here is Info
Ionic:

Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.3.3
@angular-devkit/build-angular : 14.2.7
@angular-devkit/schematics : 14.2.7
@angular/cli : 14.2.7
@ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 4.4.0
@capacitor/android : 4.4.0
@capacitor/core : 4.4.0
@capacitor/ios : 4.4.0

Utility:

cordova-res : 0.15.4
native-run : 1.7.1

System:

NodeJS : v16.17.1 (/usr/local/bin/node)
npm : 8.1.2
OS : macOS Monterey

@rishi-95
Copy link

rishi-95 commented Nov 8, 2022

Hi, I am also experiencing this issue when i tried building on my macbook. on Windows pc it does not have this error. I tried installing this cordova-support-android-plugin but no luck. my biggest challenge is that when i have to build for android i have to copy files to windows machine then build and deploy from windows but ios everything is fine.

Facing same issue,

I can see the root of the issue ,
when I did
npx cap sync

  • update android [warn] Plugins are missing dependencies.
    Cordova plugin dependencies must be installed in your project (e.g. w/ npm install).

     cordova-plugin-firebase-authentication is missing dependencies:
     - cordova-support-android-plugin (~1.0.0)
    

the plugin is not correctly installed to android folder

@muhammad-gul-dm any update did you find any solution?

@marshall86
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants