Android Studio MalformedJsonException [英] Android Studio MalformedJsonException

查看:259
本文介绍了Android Studio MalformedJsonException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,当我的计算机在上载过程中突然崩溃时,我正在使用Android Studio进行项目开发. 自从我重新启动它以来,Gradle控制台一直返回相同的错误:

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:使用 JsonReader.setLenient(true)在第1行的列接受格式错误的JSON 1

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

从这个错误中我无法理解,也找不到其他遇到相同问题的人.它们总是总是以怪异的方式不同,它们都不是我的错误.我尚未编辑任何JSON文件(因为我不知道它们的位置).

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).

推荐答案

使用:

转到构建->清理项目

然后使用:

转到构建->重建项目

我希望它能对您有所帮助!

I hope it might help you !

这篇关于Android Studio MalformedJsonException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆