Open weichou opened 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.
@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.
+1 Notice this too, thanks @WeiChou for the workaround in Mac OS
[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?