Why does the Kotlin Multiplatform in Android Studi...
# android-studio
j
Why does the Kotlin Multiplatform in Android Studio require the
com.intellij.marketplace
plugin to be installed?
z
The Kotlin Multiplatform plugin depends on a bunch of different plugins for its functionality (Android, Android Design Tools, etc etc). This one is a dependency because we're reusing some utilities from the marketplace plugin. As the IntelliJ platform itself evolves we're hoping to replace this dependency with platforms APIs later.
Normally though, when you install the Kotlin Multiplatform plugin from the marketplace, it should install all of its dependencies. Do you know how you got into this state?
j
What do you mean by this state?
z
I meant, how did you install the plugin that it's missing the dependency? Did you install it from a zip file?
j
From the marketplace in Android Studio
z
Could you copy your version info from the about screen please? This normally shouldn't happen (the dependency should be installed automatically), so we need to investigate what went wrong.
j
Ok
Android Studio Narwhal 3 Feature Drop | 2025.1.3 Build #AI-251.26094.121.2513.14007798, built on August 28, 2025 Runtime version: 21.0.7+-13880790-b1038.58 aarch64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 15.6.1 Kotlin plugin: K2 mode GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 10 Metal Rendering is ON Registry: ide.instant.shutdown=false ide.experimental.ui=true
z
Thank you! In the meantime, manually installing the missing plugin should fix the issue, it's called "JetBrains Marketplace Licensing".
j
Okay, thanks, testing now!
z
In the meantime, I tried reproducing your issue on that exact AS version, but for me the dependency plugin was installed as expected. Is there any chance you had it previously installed and you disabled it explicitly, or something like that?
j
I don’t think so..?
All my imports are red after fixing the plugin
This has been going on for months now
I have to disable the Kotlin Multiplatform Plugin or else its almost impossible to get a good workflow
z
That's unfortunate, the plugin should definitely not be causing that kind of problem, and I don't think we've seen that happening for anyone else. <!subteam^S093FP0H16X> Can you please help here with capturing/solving the issues?
s
I had the same problem on Narwhal. I had to search for the market-place plugin . Not sure, but IIRC, it happened after upgrading Narwhal.
j
Yes this started after I upgraded to Narwhal as well
@streetsofboston did you fix it?
I still have to disable the Kotlin Multiplatform Plugin or else all import and imported stuff is redlined
s
Yes, by installing the missing plugin. Searched for it on the marketplace and installed it.
j
After I installed the missing plugin and got it working everything is redlined. This started after upgrading to Narwhal as well
So I have to disable the Kotlin Multiplatform Plugin in Android Studio because it breaks everything there
Might as well use vim
z
For all the imports being red, it sounds like project sync is failing. Do you have any output in the Build tab or in Problems?
j
I will have a look later. AFK
s
I didn't have all the red-lines, though. Just that msg on the bottom related to the missing dependency, the market-place plugin.
z
The best way to solve it is probably to raise an issue here: https://youtrack.jetbrains.com/newIssue?project=KMT Providing environment details etc, a reproducer project if possible
Oh and the IDE logs, most importantly, something must be crashing in there
j
How do I fetch the IDE logs? @zsmb
Screenshot 2025-10-07 at 13.48.09.png
z
Log collection is under Help -> Collect Logs and Diagnostic Data. If you attach it to a YouTrack issue, it's JetBrains-visible by default, so that no sensitive data is public.
👍 1
If that error has details, that would also be super useful in a YouTrack ticket
j
Okay, hang on…
Does it look okay? @zsmb
z
Yes, looks great, thank you! The team already started following up in the comments as I see.
j
I replied to it…
373 Views