JakeWharton / sdk-manager-plugin

DEPRECATED Gradle plugin which downloads and manages your Android SDK.
Apache License 2.0
1.41k stars 132 forks source link

Moving ANDROID_HOME does not update local.properties #8

Closed kofalt closed 10 years ago

kofalt commented 10 years ago

Ideally, the plugin would update the SDK location in the local.properties file if the current (or plugin-generated) folder does not match the one in the configuration file. Currently, changing your environment variable is not reflected and causes a build failure:

* What went wrong:
A problem occurred evaluating root project 'sdk-manager-example'.
> Specified SDK directory '/old-sdk-folder' in 'local.properties' is not found.
JakeWharton commented 10 years ago

I intentionally did not build in this behavior. If you have a local.properties then I'm going to operate under the assumption that you've either pointed it at something specific or the plugin has previously run. If you want the local.properties to be regenerated then you can simply delete it. Updating it would prevent people from having multiple SDKs, for example.