Closed GoogleCodeExporter closed 9 years ago
Original comment by hugo.josefson.old@gmail.com
on 9 Jun 2009 at 9:56
I'll have a look-see...
Original comment by hugo.josefson.old@gmail.com
on 10 Jun 2009 at 7:53
(did this yesterday, but apparently lost network connection after submitting so
sorry
for posting late.)
Found it! Maven-Android-Plugin currently looks for ANDROID_SDK, not
ANDROID_HOME. Try
setting that instead.
It is documented in the README.txt, but I understand why it's easy to miss. It
took
me a while to realize myself!
I was talking to Mattias earlier tonight about how the plugin should find the
SDK. I
*could* add lots of magic which would look for several environment variables,
and
even fall back to backtrace the directory via any android tool found on PATH...
On
the other hand, keeping it simple has its own benefits; everyone knows there is
only
one way to configure it and it has to be done...
For example: requiring that the <plugin> tag for maven-android-plugin in the
pom is
configured with an <androidSdkLocation> tag. The sample configuration which
users cut
and paste from, could then suggest using
<androidSdkLocation>${env.ANDROID_SDK}</androidSdkLocation>. I think that would
be
both easy to use, easy to understand and easy to reconfigure.
What do you think?
And what does everyone else reading this issue think?
Original comment by hugo.josefson.old@gmail.com
on 11 Jun 2009 at 12:37
Cross-posting to Maven Android Developers so we can continue the discussion out
in
the open, where more people can see it and chime in.
Please don't respond to my question inside this Issue :) but instead click here
-->>
http://groups.google.com/group/maven-android-developers/browse_thread/thread/2c7
4470e5a33ec79
Thanks!
/Hugo
Original comment by hugo.josefson.old@gmail.com
on 11 Jun 2009 at 12:52
Original comment by hugo.josefson.old@gmail.com
on 21 Jun 2009 at 11:21
Original issue reported on code.google.com by
albin.th...@gmail.com
on 9 Jun 2009 at 9:37