react-native-webrtc / react-native-webrtc/react-native-callkeep

Error cannot find symbol import android.support.v4.app.NotificationCompat when run ./gradlew assembleRelease

Open
#344 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
511
Avg merge
9h 12m
Merged PRs (30d)
2

Description

Bug report

  • Reproduced on:
  • Android

Description

Steps to Reproduce

Versions

- Callkeep: 4.0.1
- React Native: 0.63.4
- Android:
- Phone model: 

Logs

run ./gradlew assembleRelease

node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java:36: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java:237: error: package NotificationCompat does not exist
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);
                          ^
/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java:237: error: package NotificationCompat does not exist
        NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running ./gradlew assembleRelease and inspect the reported import and usage in android/src/main/java/io/wazo/callkeep/VoiceConnectionService.java. Trace why NotificationCompat is unavailable in the release build, then verify that the command completes without the cannot-find-symbol errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.