android studio with Java compiler error:字符串太大,不能使用UTF-8编写而不是'STRING_TOO_LARGE' [英] android studio with Java compiler error: string too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'

查看:3361
本文介绍了android studio with Java compiler error:字符串太大,不能使用UTF-8编写而不是'STRING_TOO_LARGE'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在android studio中清理android项目时,错误发生了,我已经支持到之前的提交或不同的分支,几天前就能找到它,但现在有这个错误。我已经检查了这个问题,并没有为我的项目添加大图像或字符串。 Kothlin中的STRING_TOO_LARGE字符串

When I clean the android project in android studio, the error happen, I have backed to previous commit or different branch, which works find couple days ago, but has this error now. I have checked this question and there is not large image or strings added for my project. STRING_TOO_LARGE String in Kothlin

推荐答案

目前,您可以降级Gradle版本以解决此问题。
使用gradle 3.1版本,如下面的3.1.3。

For the time being, you can downgrade Gradle version to resolve this issue. Use gradle 3.1 version like 3.1.3 below.

  classpath 'com.android.tools.build:gradle:3.1.3'

这篇关于android studio with Java compiler error:字符串太大,不能使用UTF-8编写而不是'STRING_TOO_LARGE'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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