KMM是否可以在Android Studio中使用-Windows版本 [英] Does KMM works in Android Studio - Windows Version

查看:219
本文介绍了KMM是否可以在Android Studio中使用-Windows版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为iOS和Android都构建一个应用.
重新启动Android Studio后出现此错误.

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

Kotlin Multiplatform Mobile插件问题
Kotlin Multiplatform Mobile插件应该只能在macOS上运行

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

我正在使用Windows计算机.
请告诉我,是否有解决此问题的方法.

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

推荐答案

KMM可在Windows中使用.
插件在Android Studio中显示了不正确的警告,指出"KMM插件仅在macOS上可用",这可能是造成混淆的原因.

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.

注意:尽管KMM可在Windows Machine中运行,但仍有局限性.

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

  • 使用Windows计算机,您可以仅编写Android和共享模块代码(Java和Kotlin).
  • 不能创建和运行iOS模拟器.
  • Using a Windows machine, you can only write Android and shared module code (Java & Kotlin).
  • Creating and running iOS simulators are NOT possible.

这些是 Apple的限制,而不是KMM的限制.
它们适用于大多数跨平台技术,例如KMM,Flutter等.

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.

这篇关于KMM是否可以在Android Studio中使用-Windows版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆