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

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 8 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

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

    GitHub | 4 months ago | LucianWang
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
  6. 0

    Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $ in tests fails

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

  1. Nikolay Rybak 12 times, last 2 days ago
  2. justCodeit 11 times, last 3 weeks ago
  3. filpgame 4 times, last 1 month ago
  4. Emrah Küçük 9 times, last 3 months ago
  5. linxiaolong 4 times, last 3 months ago
19 more registered users
53 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