Upgrading to M5 while using Android Maven Plugin 'in the wild'

0 views
Skip to first unread message

trollswagen

unread,
Feb 28, 2008, 2:15:58 AM2/28/08
to Android-Maven
There is a mention of another maven android plugin that does builds
and installs for Android applications (http://svn.apache.org/viewvc/
maven/sandbox/trunk/plugins/maven-android/).

This is working great for me, because I prefer to build with Maven and
I develop in IntelliJ. With this plugin I've been able to hot-deploy
my changes, and I've also been able to remote debug with IDEA.

However, when I recently upgraded to m5-rc14, I started having
problems with my build (apart from API and layout changes). Turns out
you need to override the default value for the android version... so
just adding this plugin element to your pom.xml will do the trick.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-aapt-plugin</artifactId>
<configuration>
<androidVersion>m5-rc14</androidVersion>
</configuration>
</plugin>

The other reason why I'm not using the plugin provided by this project
is that I was getting an error regarding "AIDL not supported in
Windows".

Charlie Collins

unread,
Feb 28, 2008, 10:59:33 AM2/28/08
to Android-Maven
The AIDL error was put there yesterday, intentionally. As I noted in a
post about it, I haven't had time to build the AIDL part on Windows
yet. Though I probably should just skip AIDL rather than throw the
error (which is what the other plugin does I believe, it does not
support AIDL at all). I will change that sometime today.

Bottom line, works with AIDL on Mac/Linux, will work (shortly) without
AIDL on Windows (and will be fixed to work with AIDL on Windows in
near future).

Charlie Collins

unread,
Feb 28, 2008, 1:26:37 PM2/28/08
to Android-Maven
AIDL error is cleaned up now, and it runs AIDL on Mac/Lin and Windows
now. Bottom line, shouldn't get that error, and if you do need AIDL
it's there (which I don't think is the case with the other droid
plugin at Apache, but I don't know for sure).

On Feb 28, 10:59 am, Charlie Collins <charlie.coll...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages