Preview failed with exception:
org.objectweb.asm.MethodTooLargeException: Method too large: com/example/shared/MR$strings. ()V
The strings.xml contains about 2000 lines (texts). I've tried to split to different files, however, the generated file merges all strings from all files.
Note that the build is successful and the app runs fine, just the preview is crashing. I'm not sure if this is Android Studio/Java issue, but obviously the generated MR class is far too large. It will be good if we can split somehow large files, not just putting everything in one huge class.
Preview failed with exception: org.objectweb.asm.MethodTooLargeException: Method too large: com/example/shared/MR$strings. ()V
The strings.xml contains about 2000 lines (texts). I've tried to split to different files, however, the generated file merges all strings from all files. Note that the build is successful and the app runs fine, just the preview is crashing. I'm not sure if this is Android Studio/Java issue, but obviously the generated MR class is far too large. It will be good if we can split somehow large files, not just putting everything in one huge class.