Piotr Krzemiński
01/09/2025, 12:50 PMPiotr Krzemiński
01/09/2025, 12:55 PMdmitriy.novozhilov
01/09/2025, 12:56 PMPiotr Krzemiński
01/09/2025, 12:56 PMdmitriy.novozhilov
01/09/2025, 1:00 PMsome.jar
, all declarations from some.jar
will be visible in the common source set during JVM compilation. In your case it strikes that the common StringBuilder
class from common kotlin stdlib is completely not present at the classpath, and only java one is here
Such design had some sense when it was originally implemented when the MPP was released (in 1.2 or 1.3), but it has some drawbacks, and the one you faced is the most important one
Right now we are working on a different compilation scheme for KMP projects which targets to fix exactly this problem. The working prototype is ready and we are planning to start productization of it soonPiotr Krzemiński
01/09/2025, 1:01 PMPiotr Krzemiński
01/09/2025, 1:02 PMdmitriy.novozhilov
01/09/2025, 1:03 PMPiotr Krzemiński
01/09/2025, 1:06 PM