Developing an Android application

In the preceding recipe, we covered the basics of setting up the Maven Android development environment. Now that we're ready, we'll proceed to the actual development of an Android application with Maven.

Getting ready

If you haven't set up the Maven Android development environment, you need to do it before you can continue with this recipe. Refer to the previous recipe for guidance.

How to do it...

You can set up your Maven Android application project by either directly configuring the project pom.xml file or by running the Maven archetype:generate command. Steps for both the methods are as follows:

The first step is to create a Maven project with the POM file, as shown in the following code:

<?xml version="1.0" encoding="UTF-8"?> ...

Get Apache Maven 3 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.