-
Notifications
You must be signed in to change notification settings - Fork 193
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
* What went wrong: Execution failed for task ':react-native-incall-manager:compileDebugJavaWithJavac'. #198
Comments
Any updtes on this error? |
delete node modules -----> rm -rf node_modules/
|
maybe here you can find answer: facebook/react-native#35210 |
I ended up making some patches in package using patch-package. Actually the issue lies in my case at Build.VERSION_CODES.TIRAMISU & Context.RECEIVER_NOT_EXPORTED line of code in package files AppRTCBluetoothManager.java & InCallManagerModule.java, throwing error: cannot find symbols Build.VERSION_CODES.TIRAMISU, Context.RECEIVER_NOT_EXPORTED on build. i update the code in both files.
protected void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
- apprtcContext.registerReceiver(receiver, filter, Context.RECEIVER_NOT_EXPORTED);
- } else {
- apprtcContext.registerReceiver(receiver, filter);
- }
+ apprtcContext.registerReceiver(receiver, filter);
} and
private void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {
- final ReactContext reactContext = getReactApplicationContext();
- if (reactContext != null) {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
- reactContext.registerReceiver(receiver, filter, Context.RECEIVER_NOT_EXPORTED);
- } else {
- reactContext.registerReceiver(receiver, filter);
- }
- } else {
- Log.d(TAG, "registerReceiver() reactContext is null");
- }
+ getReactApplicationContext().registerReceiver(receiver, filter);
} yarn android & app build successfully |
While Running react-native run-android It showing react-native-incall--manager:compile debug java with javac error
The text was updated successfully, but these errors were encountered: