luontola / idea-sbt-plugin

IntelliJ IDEA plugin for integration with SBT (Simple Build Tool) in order to compile Scala projects easily and quickly [UNMAINTAINED]
http://plugins.intellij.net/plugin/?idea&id=5007
Apache License 2.0
178 stars 28 forks source link

ANDROID_HOME??? #115

Open weichou opened 8 years ago

weichou commented 8 years ago

[error] set the env variable ANDROID_HOME pointing to your Android SDK Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?

but i both setted ANDROID_HOME and ANDROID_SDK_HOME, and echo $ANDROID_HOME works good. How to fix this error?

aafa commented 8 years ago

+1 I've noticed this as well.

Having sdk.dir= in local.properties can handle this issue, but weirdly I just came across other project where this trick doesn't work... I'm very confused.
Needles to say that sbt console works perfectly well ether way.

aafa commented 8 years ago

@WeiChou Ok, I think I got it. I assume you are on mac os. In this case the solution is simple - IDEA doesn't read on exported paths, to pass it variable you should run launchctl setenv ANDROID_HOME $ANDROID_HOME before running IDEA.

omainegra commented 8 years ago

+1 Notice this too, thanks @WeiChou for the workaround in Mac OS