org.json.JSONException: Value v2 of type java.lang.String cannot be converted to JSONObject com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:820) android.os.Handler.handleCallback(Handler.java:725) android.os.Handler.dispatchMessage(Handler.java:92) android.os.Looper.loop(Looper.java:137) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) Its happening only on first launch right after app installation. After first launch, everything seems to be working fine. I saw stackoverflow post related to this error. It says that we need to create campaigns. I have campaign set up and running. Out of 5 campaigns, 3 are disabled and 2 running ( one static and one video publishing campaigns ) I am stressing one more time "Its happening only on first launch after app installation" UPDATE: Adding some more logs I found 07-29 15:17:59.296: D/Unity(6374): ? getMethodID("com.chartboost.sdk.unity.CBPlugin", "showInterstitial", "(Ljava/lang/String;)V", non-static) 07-29 15:17:59.306: D/Unity(6374): ? getMethodID("com.chartboost.sdk.unity.CBPlugin", "cacheInterstitial", "(Ljava/lang/String;)V", non-static)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Arun
, 1 year ago
launch, everything seems to be working fine. I saw stackoverflow post related to this error. It says that we need to create campaigns. I have campaign set up and running. Out of 5 campaigns, 3 are disabled and 2 running ( one static and one video
org.json.JSONException: Value v2 of type java.lang.String cannot be converted to JSONObject com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:820) android.os.Handler.handleCallback(Handler.java:725) android.os.Handler.dispatchMessage(Handler.java:92) android.os.Looper.loop(Looper.java:137) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869) Its happening only on first launch right after app installation. After first launch, everything seems to be working fine. I saw stackoverflow post related to this error. It says that we need to create campaigns. I have campaign set up and running. Out of 5 campaigns, 3 are disabled and 2 running ( one static and one video publishing campaigns ) I am stressing one more time "Its happening only on first launch after app installation" UPDATE: Adding some more logs I found 07-29 15:17:59.296: D/Unity(6374): ? getMethodID("com.chartboost.sdk.unity.CBPlugin", "showInterstitial", "(Ljava/lang/String;)V", non-static) 07-29 15:17:59.306: D/Unity(6374): ? getMethodID("com.chartboost.sdk.unity.CBPlugin", "cacheInterstitial", "(Ljava/lang/String;)V", non-static)
at com.chartboost.sdk.Libraries.e$a.k(SourceFile:495)
at com.chartboost.sdk.c.D(SourceFile:744)
at com.chartboost.sdk.c.A(SourceFile:718)
at com.chartboost.sdk.impl.ad.e(SourceFile:147)
at com.chartboost.sdk.e.c(SourceFile:170)
at com.chartboost.sdk.e.b(SourceFile:125)
at com.chartboost.sdk.Chartboost$7.run(SourceFile:815)
at com.chartboost.sdk.Chartboost.a(SourceFile:1394)
at com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:820)
at com.chartboost.sdk.unity.CBPlugin$4.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.