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

FirestackMessagingService.java:29: error: no suitable method found for putExtra(String,RemoteMessage) #350

Open
jotamayo opened this issue Jan 21, 2018 · 0 comments

Comments

@jotamayo
Copy link

Hello
I have created new application and i install react-native-firestack with link for android and I have a error:
config / releases
"dependencies": {
"firebase": "^4.9.0",
"react": "16.2.0",
"react-native": "0.52.0",
"react-native-firestack": "^2.3.9"
},

ERROR
/Users/main/Documents/workReacNAtive/daniel/node_modules/react-native-firestack/android/src/main/java/io/fullstack/firestack/FirestackCloudMessaging.java:127: error: cannot access zza
RemoteMessage remoteMessage = intent.getParcelableExtra("data");
^
class file for com.google.android.gms.common.internal.safeparcel.zza not found
/Users/main/Documents/workReacNAtive/daniel/node_modules/react-native-firestack/android/src/main/java/io/fullstack/firestack/FirestackMessagingService.java:29: error: no suitable method found for putExtra(String,RemoteMessage)
i.putExtra("data", remoteMessage);
^
method Intent.putExtra(String,boolean) is not applicable
(argument mismatch; RemoteMessage cannot be converted to boolean)
method Intent.putExtra(String,byte) is not applicable
(argument mismatch; RemoteMessage cannot be converted to byte)
method Intent.putExtra(String,char) is not applicable
(argument mismatch; RemoteMessage cannot be converted to char)
method Intent.putExtra(String,short) is not applicable
(argument mismatch; RemoteMessage cannot be converted to short)
method Intent.putExtra(String,int) is not applicable
(argument mismatch; RemoteMessage cannot be converted to int)
method Intent.putExtra(String,long) is not applicable
(argument mismatch; RemoteMessage cannot be converted to long)
method Intent.putExtra(String,float) is not applicable
(argument mismatch; RemoteMessage cannot be converted to float)
method Intent.putExtra(String,double) is not applicable
(argument mismatch; RemoteMessage cannot be converted to double)
method Intent.putExtra(String,String) is not applicable
(argument mismatch; RemoteMessage cannot be converted to String)
method Intent.putExtra(String,CharSequence) is not applicable
(argument mismatch; RemoteMessage cannot be converted to CharSequence)
method Intent.putExtra(String,Parcelable) is not applicable
(argument mismatch; RemoteMessage cannot be converted to Parcelable)
method Intent.putExtra(String,Parcelable[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to Parcelable[])
method Intent.putExtra(String,Serializable) is not applicable
(argument mismatch; RemoteMessage cannot be converted to Serializable)
method Intent.putExtra(String,boolean[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to boolean[])
method Intent.putExtra(String,byte[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to byte[])
method Intent.putExtra(String,short[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to short[])
method Intent.putExtra(String,char[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to char[])
method Intent.putExtra(String,int[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to int[])
method Intent.putExtra(String,long[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to long[])
method Intent.putExtra(String,float[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to float[])
method Intent.putExtra(String,double[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to double[])
method Intent.putExtra(String,String[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to String[])
method Intent.putExtra(String,CharSequence[]) is not applicable
(argument mismatch; RemoteMessage cannot be converted to CharSequence[])
method Intent.putExtra(String,Bundle) is not applicable
(argument mismatch; RemoteMessage cannot be converted to Bundle)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:react-native-firestack:compileReleaseJavaWithJavac FAILED

Some help me please?

Thk

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

1 participant