1

Just today I was on Android Studio working on a project, when my computer suddenly crashed in the middle of an upload. Ever since I rebooted it, the Gradle Console has been returning this same error:

com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1

I cannot make any sense out of this error, and could not find anyone else with the same issue. They always tend to differ in weird ways, and none of them are the error I have. I have not edited any of the JSON files (because I don't know where they are located).

Bryson Shier
  • 89
  • 2
  • 8

3 Answers3

4

Clean your project using :

Go to Build -> Clean Project

Then Rebuild again using :

Go to Build -> Rebuild Project

I hope it might help you !

Kinjal
  • 1,195
  • 4
  • 13
  • 24
1

File -> Invalidate Caches/Restart

you can try this

Ratna Halder
  • 1,954
  • 16
  • 17
1

Firebase android Projects,

If you are using Firebase in your Mobile app.

download the google-services.json file and put it inside the /app folder and run the project again.

Community
  • 1
  • 1
Zumry Mohamed
  • 9,318
  • 5
  • 46
  • 51