react-native-callkeep: Package androidx.localbroadcastmanager.content does not exist
Bug report
-
I’ve checked the example to reproduce the issue.
-
Reproduced on:
-
Android
-
iOS
Description
Package androidx.localbroadcastmanager.content does not exist error in VoiceConnection.java:27.
Steps to Reproduce
Install latest Callkeep and try to build project for Android with the latest React Native.
Versions
- Callkeep: 4.3.3
- React Native: 0.69.1
Logs
/node_modules/react-native-callkeep/android/src/main/java/io/wazo/callkeep/VoiceConnection.java:27: error: package androidx.localbroadcastmanager.content does not exist
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
^
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 11
- Comments: 17 (1 by maintainers)
Commits related to this issue
- Merge pull request #596 from ohheyitskartik/localboardcastmanager-add-on Android : adding localbroadcastmanager support (#594 Fix) — committed to react-native-webrtc/react-native-callkeep by manuquentin 2 years ago
- add localbroadcastmanager dependency as per https://github.com/react-native-webrtc/react-native-callkeep/issues/594 — committed to anyoneab/react-native-callkeep by radiodario 2 years ago
@alexanderoskin that work, open node_modules/react-native-callkeep/android/build.graldew add :
implementation “androidx.localbroadcastmanager:localbroadcastmanager:1.1.0” run npx patch-package react-native-callkeep
@manuquentin, can you update the package on https://www.npmjs.com/package/react-native-callkeep??
Any update
Hey, i have been facing a similar issue and i found out that google has split the v4 library into multiple packages :
Note: Prior to Support Library revision 24.2.0, there was a single v4 support library. That library was divided into multiple modules to improve efficiency. For backwards compatibility, if you list support-v4 in your Gradle script, your app will include all of the v4 modules. However, to reduce app size, we recommend that you just list the specific modules your app needs.
hence we need to add explicitly mention androidx.localbroadcastmanager:localbroadcastmanager:1.1.0 dependency.
i wanted to create PR for the same but dont have push rights, if someone can help me with that, it will be great.
Till then i have created a fork with fix here - https://github.com/ohheyitskartik/react-native-callkeep-with-broadcast-manager
Until a new version is released you can change in your package.json file
"react-native-callkeep": "4.3.3",to
"react-native-callkeep": "git+https://github.com/react-native-webrtc/react-native-callkeep#4b1fa98a685f6502d151875138b7c81baf1ec680",to get the fix right away.
Facing the same issue
I have to update build.gradle at following path.
/node_modules/react-native-callkeep/android/build.gradle
I have attached gradle file as build.txt due to github security.
@sboily, my bad i just cloned the repo & didn’t fork it hence i was not able to select my branch for a PR, i have just raised one #596
Same issue for me
package need to be released new version, although it should be automated
When this bug will be fixed?