evollu / evollu/react-native-fcm
Execution failed for task ':react-native-fcm:compileDebugJavaWithJavac'.
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
project info
"react-native": "0.49.3",
"react-native-fcm": "16.2.0",
till yesterday there was no issue with my project,
but today I am not able to build the project even I did not change a single line
I am getting below error
```
> Task :react-native-fcm:compileDebugJavaWithJavac
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:14: error: cannot find symbol
import com.google.firebase.iid.FirebaseInstanceIdService;
^
symbol: class FirebaseInstanceIdService
location: package com.google.firebase.iid
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:16: error: cannot find symbol
public class InstanceIdService extends FirebaseInstanceIdService {
^
symbol: class FirebaseInstanceIdService
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:26: error: method does not override or implement a method from a supertype
@Override
^
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:44: error: cannot find symbol
ReactInstanceManager mReactInstanceManager = ((ReactApplication) getApplication()).getReactNativeHost().getReactInstanceManager();
^
symbol: method getApplication()
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:48: error: cannot find symbol
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(message);
^
symbol: method getApplicationContext()
D:\K_E\KE_7_may\koenig-employee\node_modules\react-native-fcm\android\src\main\java\com\evollu\react\fcm\InstanceIdService.java:53: error: cannot find symbol
LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(message);
^
symbol: method getApplicationContext()
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
6 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-fcm:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
```
can somebody please help me to solve and understand why this happens
Thanks
Contributor guide
No contributing guide indexed for this repository
Research direction
The failure is in node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/InstanceIdService.java; start by reproducing the :react-native-fcm:compileDebugJavaWithJavac task and reading the reported Firebase symbols. Check the resolved project dependencies against the imports in that file. Done means the Android debug build completes without these compilation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, firebase, java, react-native
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100