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

Tigran Babajanyan picture Tigran Babajanyan · Oct 1, 2018 · Viewed 10.2k times · Source

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?

Answer

Mirza Ahmed Baig picture Mirza Ahmed Baig · Jul 28, 2020

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.