0

I've just opened my project and I couldn't build it. Here is my Gradle console output:

18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:mergeDebugResources'.
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Error: java.lang.RuntimeException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4s

Everything worked well when I worked on it yesterda. What should I do? Thanks in advance!

1 Answers1

0

What JSON file is giving the error? The file might have been corrupted.

If it is the JSON file provided by Firebase or Crashlytics or some other library, you can re-download and replace the file after cleaning your project..

Adib Faramarzi
  • 3,242
  • 3
  • 26
  • 39