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

Build error pointing to ForegroundService class in ChatHeads.java #2

Open
druidtton opened this issue Dec 23, 2017 · 1 comment
Open

Comments

@druidtton
Copy link

Hello, I was very exited when I found your github account after several weeks of non stop searching for a solution to floating activities using Cordova, and I must say your plugin is the closest thing to a working product I've seen. Even Microsoft gave it a go with cordova-plugin-ace floating widgets, and they just abandoned the whole thing, probably because it is such a hard problem so hats off to you.

It seems like you're getting an unknown symbol error starting on line 29 of ChatHeads.java which goes private ForegroundService service; because the compiler doesn't know what the heck ForegroundService is.

Now, I know that you've said before that you no longer have time to maintain this project as you don't have the time, which broke my heart, but I was wondering if you could at least point me in the right direction as to what might be causing this issue and how I could go about fixing it.

My knowledge of Java is minimal, which is part of the reason I'm looking for a cordova way of doing this in the first place, and after days and days of staring at different people's java files I am so dizzy and disoriented that I decided to just beg for your help instead. Could you point me in the right direction?

Thank you.

BUILD FAILED

Total time: 3.066 secs
Error: cmd: Command failed with exit code 1 Error output:
C:\Users\admin\Desktop\neckSaver\CORDOVA\textNeckFloatingTest\platforms\android\src\co\wardman\chatheads\ChatHeads.java:29: error: cannot find symbol
    private ForegroundService service;
            ^
  symbol:   class ForegroundService
  location: class ChatHeads
C:\Users\admin\Desktop\neckSaver\CORDOVA\textNeckFloatingTest\platforms\android\src\co\wardman\chatheads\ChatHeads.java:39: error: package ForegroundService does not exist
            ForegroundService.ForegroundBinder binder =
                             ^
C:\Users\admin\Desktop\neckSaver\CORDOVA\textNeckFloatingTest\platforms\android\src\co\wardman\chatheads\ChatHeads.java:40: error: package ForegroundService does not exist
                    (ForegroundService.ForegroundBinder) service;
                                      ^
C:\Users\admin\Desktop\neckSaver\CORDOVA\textNeckFloatingTest\platforms\android\src\co\wardman\chatheads\ChatHeads.java:97: error: cannot find symbol
                        fireEvent(Event.ACTIVATE, null);
                        ^
  symbol:   method fireEvent(Event,<null>)
  location: class ChatHeads
C:\Users\admin\Desktop\neckSaver\CORDOVA\textNeckFloatingTest\platforms\android\src\co\wardman\chatheads\ChatHeads.java:100: error: cannot find symbol
            fireEvent(Event.FAILURE, e.getMessage());
            ^
  symbol:   method fireEvent(Event,String)
  location: class ChatHeads
5 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
@Mapiac
Copy link

Mapiac commented Mar 13, 2019

@druidtton did you complete your task?

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

2 participants