从 IntelliJ 内部运行 sbt 时,我在运行 scala-android 插件时遇到问题。当我从 Mac 终端为同一个项目运行 sbt 时,我没有收到任何错误:
~/Documents/my-android-project $ sbt
[info] Loading global plugins from /Users/rgoodwin/.sbt/plugins
[info] Loading project definition from /Users/rgoodwin/Documents/my-android-project/project
[info] Set current project to (in build file:/Users/rgoodwin/Documents/my-android-project/)
但是当我尝试从 IntelliJ 运行 sbt 时,我得到:
[info] Loading global plugins from /Users/rgoodwin/.sbt/plugins
[info] Loading project definition from /Users/rgoodwin/Documents/my-android-project/project
[error] Android SDK not found. You might need to set ANDROID_SDK_HOME or ANDROID_SDK_ROOT or ANDROID_HOME
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
为什么 IntelliJ 内部的 sbt 不选择我设置的路径名称?