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)

Stack Overflow | Arun | 4 months ago
  1. 0

    Chartboost Unity Issue on first app launch event after installation

    Stack Overflow | 4 months ago | Arun
    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)
  2. 0

    android php org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject

    Stack Overflow | 7 months ago | Ghazal
    org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject Here is my php code: <?php $con = mysqli_connect("DBHOST", "USERNAME", "PASSWORD!", "DBNAME"); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "INSERT INTO user (username, password) VALUES (?, ?)"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); $response = array(); $response["success"] = true; print_r(json_encode($response)); ?> and here is my logcat: 04-30 15:55:06.585 11289-11289/? I/art: Not late-enabling -Xcheck:jni (already on) 04-30 15:55:06.708 11289-11289/com.google.android.gms.fit.samples.basichistoryapi W/System: ClassLoader referenced unknown path: /data/app/com.google.android.gms.fit.samples.basichistoryapi-1/lib/x86 04-30 15:55:06.956 11289-11319/com.google.android.gms.fit.samples.basichistoryapi D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 04-30 15:55:07.062 11289-11319/com.google.android.gms.fit.samples.basichistoryapi I/OpenGLRenderer: Initialized EGL, version 1.4 04-30 15:55:07.094 11289-11319/com.google.android.gms.fit.samples.basichistoryapi W/EGL_emulation: eglSurfaceAttrib not implemented 04-30 15:55:07.094 11289-11319/com.google.android.gms.fit.samples.basichistoryapi W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xad7e0740, error=EGL_SUCCESS 04-30 15:55:19.158 11289-11289/com.google.android.gms.fit.samples.basichistoryapi W/System.err: org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject
  3. 0

    android - jsonArray.length() returning null even after getting JSON output from localhost

    Stack Overflow | 2 years ago | Sajib Acharya
    org.json.JSONException: Value [{"time":"2:00pm","subject":"Subject One"},{"time":"2:30pm","subject":"Subject Two"}] of type org.json.JSONArray cannot be converted to JSONObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Chart boost sdk for android

    Stack Overflow | 5 months ago | Architha Shastry
    org.json.JSONException: Value v2 of type java.lang.String cannot be converted to JSONObject
  6. 0

    Error creating new json object org.json - Sing-in Google Plus

    Stack Overflow | 2 months ago | user2393513
    org.json.JSONException: Value v2 of type java.lang.String cannot be converted to JSONObject

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. com.chartboost.sdk
      CBPlugin$4.run
      1. com.chartboost.sdk.Libraries.e$a.k(SourceFile:495)
      2. com.chartboost.sdk.c.D(SourceFile:744)
      3. com.chartboost.sdk.c.A(SourceFile:718)
      4. com.chartboost.sdk.impl.ad.e(SourceFile:147)
      5. com.chartboost.sdk.e.c(SourceFile:170)
      6. com.chartboost.sdk.e.b(SourceFile:125)
      7. com.chartboost.sdk.Chartboost$7.run(SourceFile:815)
      8. com.chartboost.sdk.Chartboost.a(SourceFile:1394)
      9. com.chartboost.sdk.Chartboost.cacheInterstitial(SourceFile:820)
      10. com.chartboost.sdk.unity.CBPlugin$4.run(Unknown Source)
      10 frames