java.lang.RuntimeException: Cannot convert argument of type class org.json.JSONObject


Solutions on the web6

Solution icon of github
via GitHub by pampang
, 8 months ago
Cannot convert argument of type class org.json.JSONObject

Solution icon of github
via GitHub by jasongrishkoff
, 6 months ago
Cannot convert argument of type class [Ljava.lang.Object;

Solution icon of github
Cannot convert argument of type class com.braintreepayments.api.exceptions.UnexpectedException

Solution icon of stackoverflow
Cannot convert argument of type class [B

Solution icon of github
Cannot convert argument of type class [Ljava.lang.Object;

Solution icon of stackoverflow
Cannot convert argument of type class org.json.JSONArray

Stack trace

java.lang.RuntimeException: Cannot convert argument of type class org.json.JSONObject
	at com.facebook.react.bridge.Arguments.fromJavaArgs(Arguments.java:57)
	at com.facebook.react.bridge.JavaScriptModuleRegistry$JavaScriptModuleInvocationHandler.invoke(JavaScriptModuleRegistry.java:109)
	at $Proxy3.emit(Native Method)
	at cn.jpush.reactnativejpush.JPushModule$JPushReceiver.onReceive(JPushModule.java:261)
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:2446)
	at android.app.ActivityThread.access$1700(ActivityThread.java:139)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1286)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:136)
	at android.app.ActivityThread.main(ActivityThread.java:5102)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:515)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
	at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 1 year ago