Android : Android Studio + Gradle: SDK location not found -- (error is on build agent, see below)

on Wednesday, October 1, 2014


I've seen similar posts here quite a bit but no answers to my problem specifically. I'm trying to get my project in Android Studio on our nightly build agents. We use TFS and MSBuild to kick off the builds. When I run my command line locally everything works fine. When I perform the same command on my build agent running the same OS, I get the following: SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.


On the build agent, I have ANDROID_HOME set to my sdk directory but it can't find it.I have created a local.properties file with sdk.dir= and it works fine. However, this makes it much harder to port on all four build agents. So my question is, does anyone have any idea why it is not finding my environment variable?


Running Android Studio 0.8.9 with Gradle 0.12+ plugin.


0 comments:

Post a Comment