Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'

Java compiler error: string too large to encode using UTF-8 written instead as 'STRING_TOO_LARGE'.

I want to note, that there I have no long string and no one vector drawable that bigger than 32kb (biggest is 3.7kb).

Gradle 3.2.0, build tool 28.0.3

What can take a problem?

like image 678
Tigran Babajanyan Avatar asked Oct 01 '18 10:10

Tigran Babajanyan


2 Answers

Run this in your terminal

./gradlew cleanBuildCache 

(in my case I need to do this several times until it helps)

like image 164
Cube Avatar answered Nov 18 '22 16:11

Cube


Check your vector drawables there may be a big path. I came across same issue and i solved it by deleting big vector drawable it.

like image 1
Mirza Ahmed Baig Avatar answered Nov 18 '22 16:11

Mirza Ahmed Baig