Skip to content
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

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

Open
nailikhaled opened this issue May 7, 2019 · 5 comments
Open

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

nailikhaled opened this issue May 7, 2019 · 5 comments

Comments

@nailikhaled
Copy link

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
Copy link

Nahani commented May 7, 2019

I have the same issue since today...

@yogieputra8
Copy link

Me too

@Nahani
Copy link

Nahani commented May 7, 2019

see here #1111

@hidayatridwan
Copy link

i have same issue 2weeks ago

@wandersage
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants