Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

GC MIntentService.java:565: error: cannot find symbol mBuilder.setColor(iconColor); #393

Closed
Ziv-Barber opened this issue Dec 3, 2015 · 10 comments

Comments

@Ziv-Barber
Copy link

platforms\android\src\com\adobe\phonegap\push\GC MIntentService.java:565: error: cannot find symbol mBuilder.setColor(iconColor); ^ symbol: method setColor(int) location: variable mBuilder of type Builder

@macdonst
Copy link
Member

macdonst commented Dec 3, 2015

@Ziv-Barber please stop opening this issue. You already did with issue #217 where I directed you to:

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#compilation

This is a duplicate of #51 which has been addressed Ad nauseam.

@macdonst macdonst closed this as completed Dec 3, 2015
@Ziv-Barber
Copy link
Author

Sorry. Anyway, I just comment this line to make it to compile.

@macdonst
Copy link
Member

macdonst commented Dec 3, 2015

Update your Android Compat Library

@Ziv-Barber
Copy link
Author

OK, after fighting with it for hours, this is the only way to make this plugin to work with the facebook plugin:

  1. You MUST install a patched com.phonegap.plugins.facebookconnect plugin that using android-support-v13.jar and NOT the normal one that using android-support-v4.jar.
  2. Replace android-support-v13.jar in platforms/android\com.phonegap.plugins.facebookconnect/FacebookLib/libs with the LAST version from Google SDK (extras/android/support/v13).
  3. Edit build.gradle, find the comments with "SUB-PROJECT DEPENDENCIES", change them to anything you want. We just don't want the Cordova script to find them or it'll destroy our changes. Now comment out all the lines between the comments that match this:
    compile "com.google.android.gms:play-services ...
    or
    compile "com.android.support:support-v13 ...
    then save the file.

Now you can compile your project without getting any error.

@macdonst
Copy link
Member

macdonst commented Dec 3, 2015

@Ziv-Barber did you see our docs on how to get this to peacefully co-exist with the Facebook plugin?

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#co-existing-with-facebook-plugin

@Ziv-Barber
Copy link
Author

@macdonst, yes I saw but I also saw the comments that it's not working.
Anyway, now it working for me BUT I can't find out how to setup custom res files.
I want to use custom notification icons for Android 5+. I know that I need to configure android.icon with the name of the res file but how can I put custom res file that is neither icon or splash image?

@barocsi
Copy link

barocsi commented Jan 24, 2016

I have no facebook plugin installed, followed everything as described above.
And still...
GCMIntentService.java:571: error: cannot find symbol

@zigzag-way
Copy link

I also still have the same problem

@jonystorm
Copy link

+1

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

5 participants