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

后端 未结 16 1153
北恋
北恋 2020-12-03 06:45

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 er

相关标签:
16条回答
  • 2020-12-03 07:28

    In my case I declared a string variable in xml using data binding without assigning a value to it. by setting value to variable problem resolved

    0 讨论(0)
  • 2020-12-03 07:30

    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'
    
    0 讨论(0)
  • 2020-12-03 07:30

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

    0 讨论(0)
  • 2020-12-03 07:30

    I found an SVG file that had a very long pathData. I commented it out and the error went away. That very same vector (when called) at runtime would cause a crash (before it was commented out).

    0 讨论(0)
提交回复
热议问题