Search code examples
windowsandroid-studiokotlin-multiplatformkmm

Does KMM works in Android Studio - Windows Version


I need to build an app for both iOS and Android.
I am getting this error after restarting Android Studio.

Kotlin Multiplatform Mobile plugin issue
Kotlin Multiplatform Mobile plugin is supposed to work on macOS only

I am using a windows machine.
Please tell me, if there is any solution to this problem.


Solution

  • KMM works in Windows.
    There is an incorrect warning shown in Android Studio for the plugin stating "KMM Plugin is only available on macOS", which is probably the reason for the confusion.

    Plugin Error

    Note: Though KMM works in Windows Machine, there are limitations.

    • Using a Windows machine, you can only write Android and shared module code (Java & Kotlin).
    • Creating and running iOS simulators are NOT possible.

    These are limitations from Apple rather than from KMM.
    They are applicable for most of the cross-platform technologies like KMM, Flutter, etc.

    Refer to this thread for more info.