kdoctor
kdoctor copied to clipboard
Android Studio: Cannot detect installed Kotlin Multiplatform Mobile Plugin
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:
Same issue for me.
Partial kdoctor
output:
[x] Android Studio
* Android Studio (2021.3)
Location: /Users/wblondel/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
Installed plugin:
macOS 12.6 on M1
@wumo @wblondel Maybe you've multiple Android Studio installed, and the one you're running is not the same one mentioned in the error you're getting?
@findjigar No, only one version android studio is installed. I also check the android studio app listed in kdoctor and kotlin multiplatform mobile plugin is installed.
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.
I have the same issue and I have installed Android Studio trough Jetbrains Toolbox
Yep, same for me. The issue is still there, someone should review the PR 😁
I've fixed the issue during refactoring kdoctor
. Should be OK in the next release
If you want, you can try to run it via ./gradlew runDebugExecutableMacosX64
on wip
branch