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.org18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]18:12:07.274 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4sEverything worked well when I worked on it yesterda. What should I do?Thanks in advance! 解决方案 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.. 这篇关于无法构建项目,Gradle输出告知Use JsonReader.setLenient(true)在第1行第1列路径$接受格式错误的JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-25 11:49