【发布时间】:2018-07-18 20:17:16
【问题描述】:
我使用项目生成器创建了默认的“测试”项目,然后将该项目复制到我的 Mac Mini,在 IntelliJ 中打开它(安装了最新的 RoboVM),然后在 :ios 项目下运行 gradle 任务“launchIPadSimulator”。这样做似乎需要在 Mac 上设置 Android SDK,但我只想在 Mac 上为 iOS 构建:
CODE: SELECT ALL
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':android'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
我该如何解决这个问题?我真的必须安装 Android SDK 才能进行 iOS 构建吗? (我确实想在我的 Windows 机器上构建 Android 部分;只是不在 Mac 上。)
【问题讨论】: