question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Studio: Cannot detect installed Kotlin Multiplatform Mobile Plugin

See original GitHub issue

Running kdoctor shows:

[x] Android Studio
    * Android Studio (2021.3)
      Location: /Users/wumo/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9014738/Android Studio.app
      Bundled Java: openjdk 11.0.13 2021-10-19
      Kotlin Plugin: 213-1.7.10-release-for-android-studio-AS6777.52
      Kotlin Multiplatform Mobile Plugin: not installed
          Install Kotlin Multiplatform Mobile plugin - https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform-mobile

But the plugin is installed: WeChatWorkScreenshot_7919f94a-38d4-4240-a4b2-9fc3a88af95a

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:7
  • Comments:9

github_iconTop GitHub Comments

3reactions
mhoriokacommented, Oct 23, 2022

Hi, I have the same issue and I believe kdoctor does not check the location of kmm plugin correctly.

As I tested, kdocter looks for plugins installed in a default location like:

  • $HOME/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/222.4345.14.2221.9178080/Android Studio Preview.app/Contents
  • $HOME/Library/Application Support/Google/AndroidStudioPreview2022.2

but, with JetBrains Toolbox App, the kmm plugin was actually installed in the “$location.plugins” directory like:

$HOME/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/222.4345.14.2221.9178080/Android Studio Preview.app.plugins

So I guess https://github.com/mhorioka/kdoctor/blob/3d15c6f34790fa85097bad35108d32759fc7f223/kdoctor/src/macosMain/kotlin/org/jetbrains/kotlin/doctor/entity/Application.kt needs to be updated.

2reactions
terrakokcommented, Dec 1, 2022

it should be fixed in 0.0.5 version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up an environment | Kotlin
In Android Studio, select Settings/Preferences | Plugins, search Marketplace for Kotlin Multiplatform Mobile, and then install it.
Read more >
Kotlin Multiplatform Mobile - Android Studio Plugin | Marketplace
With the Kotlin Multiplatform Mobile plugin for Android Studio, you can: Write business logic just once and share the code on both platforms....
Read more >
how to fix Kotlin Multiplatform Mobile gradle red error
Gradle JDK can be configured in Android Studio Preferences under Build, Execution, Deployment -> Build Tools -> Gradle section [v] Android ...
Read more >
Install KMM plugin in to your Android Studio - YouTube
KMM stand for Kotlin Multiplatform Mobile. In order to develop KMM Application in your Android Studio you have to install the plugin.
Read more >
Known issues with Android Studio and Android Gradle Plugin
Android Studio doesn't start after installing version 4.2. Studio tries to import previous .vmoptions ... Compilation issue in Kotlin multiplatform projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found