'.class file too large

I have a kotlin file with a function that returns a list of strings with 10,000 elements, but when compiling it generates an error, saying that the .class file is too large. What I can do?

 return listOf( "string 1", "string 2", ... "string 10,000" )

each string is between 5 and 20 characters or so. The file has nothing but the function

error

 java.lang.RuntimeException: Error generating class file path/../LiveLiterals$FileName.cass (compile from [path..]) class to large


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source