com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

  1. 0

    why this errors in android studio occurred when i create new project?

    Stack Overflow | 4 months ago | Amin Zeynalpoor
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
  2. 0

    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

    GitHub | 2 years ago | tevjef
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
  3. 0

    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

    GitHub | 2 years ago | tevjef
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Editing Config

    GitHub | 6 years ago | lmk-chris
    com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: invalid number or unquoted string near ?{ "colorMember": "G
  6. 0

    Retrofit - removing some invalid characters from response body before parsing it as json

    Stack Overflow | 2 years ago | pomber
    retrofit.RetrofitError: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1

  1. Indri Yunita 4 times, last 2 weeks ago
  2. nasimk 1 times, last 2 weeks ago
  3. Alexandru Popa 96 times, last 2 weeks ago
  4. iridic 6 times, last 3 weeks ago
  5. bmacedo 36 times, last 2 weeks ago
14 more registered users
52 unregistered visitors
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. java.lang.IllegalStateException

    Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $

    at com.google.gson.stream.JsonReader.beginArray()
  2. Gson
    Gson.fromJson
    1. com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
    2. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
    3. com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
    4. com.google.gson.Gson.fromJson(Gson.java:810)
    5. com.google.gson.Gson.fromJson(Gson.java:775)
    6. com.google.gson.Gson.fromJson(Gson.java:724)
    6 frames
  3. com.android.tools
    DistributionService$2.run
    1. com.android.tools.idea.stats.DistributionService.loadDistributionsFromJson(DistributionService.java:319)
    2. com.android.tools.idea.stats.DistributionService.loadFromFile(DistributionService.java:297)
    3. com.android.tools.idea.stats.DistributionService.loadStatsSynchronously(DistributionService.java:222)
    4. com.android.tools.idea.stats.DistributionService.access$000(DistributionService.java:54)
    5. com.android.tools.idea.stats.DistributionService$2.run(DistributionService.java:194)
    5 frames
  4. IDEA
    ApplicationImpl$8.run
    1. com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
    2. com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
    3. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
    4. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
    5. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    6. com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
    7. com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
    8. com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
    8 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames
  6. IDEA
    PooledThreadExecutor$1$1.run
    1. org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
    1 frame