evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

Task :react-native-fcm:compileDebugJavaWithJavac FAILED #1112

Open nailikhaled opened 5 years ago

nailikhaled commented 5 years ago

Task :app:processDebugGoogleServices Parsing json file: C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\android\app\google-services.json

Task :react-native-fcm:compileDebugJavaWithJavac FAILED C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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 C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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 C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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 ^ C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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() C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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() C:\Users\DELL-EXTHONE\Desktop\domainetest\CITYC\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

Nahani commented 5 years ago

I have the same issue since today...

yogieputra8 commented 5 years ago

Me too

Nahani commented 5 years ago

see here https://github.com/evollu/react-native-fcm/issues/1111

hidayatridwan commented 5 years ago

i have same issue 2weeks ago

wandersage commented 4 years ago

I've replaced InstanceIdService.class with [this](https://gist.github.com/wandersage/6571d4cc363e5895d3bad3f89f91774d. this helped me to fix this issue, but I've not tested that pushes working propertly.
need migration to FirebaseMessagingService .