Most likely, the problem is that the symbol you're requesting is inside the root package. And there is a corresponding bug. https://youtrack.jetbrains.com/issue/KTNB-709/Symbols-from-the-root-package-inside-the-libraries-are-not-resolved-on-the-kernel-side
Workaround: move the symbol to non-root package