Skip to content
🤔 Documentation issue? Report or edit

Known Issues

KMP project with single target

  • Unresolved reference for API class

When you have a KMP project with a single target, IntelliJ will find the generated “create” extension function (e.g. ktorfit.createExampleApi()) in your common module, but the compilation will fail because of an “Unresolved reference” error. In that case, you have to use ktorfit.create<ExampleApi>() to make it work, even though it’s already deprecated.

Kotlin handles the compilation of a KMP project with a single target differently than with multiple targets.

See:


Last update: September 1, 2024