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

Build failes if local.properties SDK dir does not exists #18

Closed x2on closed 10 years ago

x2on commented 10 years ago

The build failes if the SDK dir specified in the local.propertiesdoesn't exists.

Build file '/usr/local/buildagent/work/build.gradle' line: 32

* What went wrong:
A problem occurred evaluating root project 'work'.
 Specified SDK directory '/Users/buildagent/.android-sdk' in 'local.properties' is not found.

If i delete the local.properties and rerun the build all works.

Would be nice if this could be done automatically.

x2on commented 10 years ago

Ok is found #8.

But the local.properties was generated by the plugin, but the .android-sdk folder was deleted.

Any thoughts on this?

JakeWharton commented 10 years ago

Why was the SDK folder deleted? This is an intentional failure since the project is specifying where it thinks the SDK is but it's not actually there.

x2on commented 10 years ago

I deleted it because i wanted to test the new version of this plugin. :)

I thought it should download the sdk if not present - but this is your choice.

JakeWharton commented 10 years ago

It will download it if there is no local.properties and an ANDROID_HOME pointing at a specific folder. The presence of a local.properties means that the project was pointed at a real SDK and I treat its absence as a bug.