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

Xianwei picture Xianwei · Sep 7, 2018 · Viewed 55.1k times · Source

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

Answer

Kalu Khan Luhar picture Kalu Khan Luhar · Oct 31, 2018

I had encountered the same and fixed by clear the build cache .