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

NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID): actual and formal argument lists differ in length #824

Closed
Schabaani opened this issue Aug 9, 2018 · 3 comments
Labels

Comments

@Schabaani
Copy link

I need to use action buttons when app is killed or closed, so I used dluksza fork. However it cannot run the app:

node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:164: error: constructor Builder in class Builder cannot be applied to given types;
            NotificationCompat.Builder notification = new NotificationCompat.Builder(context, NOTIFICATION_CHANNEL_ID)
                                                      
  required: Context
  found: Context,String
  reason: actual and formal argument lists differ in length

Some config of project:

compileSdkVersion 23
buildToolsVersion "27.0.3"
minSdkVersion 16
targetSdkVersion 22
compile "com.android.support:appcompat-v7:23.0.1"
@baselbj
Copy link

baselbj commented Aug 18, 2018

same issue here

@jlkalberer
Copy link

jlkalberer commented Sep 2, 2018

Here's the fix

You need to update your build.gradle for the whole project. This will make it use the correct appcompat.

@github-actions
Copy link

github-actions bot commented May 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label May 2, 2020
@github-actions github-actions bot closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants