I have added a Kotlin Multiplatform module in my p...
# multiplatform
s
I have added a Kotlin Multiplatform module in my project A and exporting this module as a aar file. I am adding this aar file to my another project as a library. With this setup now I am not able to run and get desktop tasks. Any solution on this ?
p
Can you provide more details or a link to code if open source. In general you export a klib not an aar, aar is intended to be consumed only in Android target. A klib encapsulates all targets. However, what you call "export"? You mean you are creating an aar file and copy/paste it in another project. It is better to use maven or some repo to do that. I am not sure if you can manually copy a klib and just consume it from a client project. Although is possible in theory
s
You mean the shared module(responsible for providing views as per my requirement) I have added in Main Project instead of exporting it as aar I need to export it as klib and that I need to plug-in for my client project. @Pablichjenkov right ? Any reference document I can refer for this ?
p
I quite don't get your setup. Do you have a project one could check to see what exactly you want to achieve? You can test publishing your library to maven local and consume it from the other project from maven local.
s
even If I consume that in another project. How about building targets web/desktop ? Do I need to have multiplatform setup for that project also where I am consuming this library which is shared module @Pablichjenkov
p
Yes