Questions tagged [android-maven-plugin]

The android-maven-plugin allows building of Android applications and libraries with Apache Maven and provides many more features related to Android development.

android-maven-plugin (formerly maven-android-plugin) brings the power of Maven to Android project development. It lets you build Android application (apk) projects as well as application libraries (apklib) and Android archives (aar) with Maven, with simple and powerful configuration. It has features like deploying to all attached devices, running instrumentation tests, taking screenshots, running lint, zipalign, proguard and many more.

208 questions
23
votes
1 answer

Android dependencies : apklib vs aar files

From my understanding, apklib contains code + resource shared with Maven . aar files are distributed by Gradle. The aar differ from apklib in one major way : classes are compiled and included in a classes.jar in the root of the aar. Whereas apklib…
Raymond Chenon
  • 11,482
  • 15
  • 77
  • 110
20
votes
1 answer

com.jayway.maven.plugins.android.generation2: Plugin execution not covered by lifecycle configuration?

I'm stumped. We recently converted our Android project to a Maven project. My partner is using IntelliJ and I'm using Eclipse. He says this builds fine with his setup. I'm very new to Maven and have followed the tutorials and read just about…
ColonelPackage
  • 501
  • 1
  • 6
  • 14
19
votes
2 answers

State of Android project dependency management

We are standardizing our infrastructure for Android development and we are trying to incorporate dependency management to our Android library projects. My current track is using the maven android plugin with m2e-android. We have uploaded the Android…
AngraX
  • 1,803
  • 2
  • 18
  • 30
14
votes
6 answers

Could not find tool aapt. Please provide proper Android SDK directory path as configuration parameter

I am trying to build a android project using maven. But when I run : mvn clean install I get the following error: Execution default-generate-sources of goal…
Nemin Shah
  • 301
  • 1
  • 3
  • 12
13
votes
2 answers

Error in pom file in Maven project after importing into Eclipse

I am actually new to the Maven framework. I already have a Maven project. I installed the Maven plugin etc into my EclipseIDE from http://m2eclipse.sonatype.org/sites/m2e. Then I imported my project and enabled dependencies, but the project is…
dipti
  • 141
  • 1
  • 1
  • 3
10
votes
2 answers

Failed to execute goal com.jayway.maven.plugins.android.generation2

I have an Android project that uses Maven. It works with my old computer running Windows XP. but now in my other computer I get this error when running maven: Failed to execute goal…
Mark Pazon
  • 6,167
  • 2
  • 34
  • 50
10
votes
3 answers

Maven and Android Facebook SDK apklib

So I am in the process of Maven-ing the facebook-android-sdk to include in our CI process. facebook/pom.xml:
10
votes
1 answer

Maven build Android application - BuildConfig

While trying to use Maven for building Android projects I recognized that the maven-android-plugin doesn't autogenerate the BuildConfig class during build time. I have found a ticket regarding that problem and a Google Groups thread. Issue:…
denis
  • 1,393
  • 3
  • 14
  • 34
9
votes
2 answers

Android+Maven "No resource identifier found for attribute 'installLocation' in package 'android'"

To add support to my android app for installLocation I upped my android level from 7 to 8 in my IDE (IntelliJ). The android app builds fine from IntelliJ. We use maven though, and from Maven it fails to compile. [ERROR]…
MikeNereson
  • 3,890
  • 6
  • 24
  • 28
9
votes
2 answers

Error during Sync: timeout when deploying apk to device using maven

I'm using the maven android plugin to build my projects and deploy them to a device. Using mvn clean install android:undeploy android:deploy I can successfully deploy to my 2.2 ZTE blade : [INFO] Found 1 devices connected with the Android Debug…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
8
votes
1 answer

packaging android facebook sdk as apklib with maven

I have used maven-android-plugin 3.0.0-alpha-7 to package the facebook android sdk as a apklib. It looks like this: $ unzip sdk-1.0-SNAPSHOT.apklib Archive: sdk-1.0-SNAPSHOT.apklib creating: META-INF/ inflating: META-INF/MANIFEST.MF …
danb
  • 10,239
  • 14
  • 60
  • 76
8
votes
3 answers

maven build android project: specify the location of aidl file

My android project has only aidl file, project structure is like below: MyProject/ src/ main/ com.my.aidl/ IMyService.aidl pom.xml I am building my android project with maven. My pom uses the dexguard-maven-plugin…
user842225
  • 5,445
  • 15
  • 69
  • 119
8
votes
1 answer

Maven: Using Java 8 libraries in applications instrumented with retrolambda-maven-plugin and DEX-ed with android-maven-plugin

I have written a small set of minilibraries for my internal use. This is set is built using Maven. The libraries are targetted for "regular" Java, GWT and Android. Some of them are written in Java 8 because I hadn't any intention to run them on GWT…
Lyubomyr Shaydariv
  • 20,327
  • 12
  • 64
  • 105
8
votes
1 answer

VerrifyError with Guice on Android maven project

So I'm trying to get Guice to run in my android maven project and bundle in a 3rd party module. It runs fine in the normal junittest that does a test injection, but fails on the VM with the logcat message attached below. What I can't understand is…
Daniel Gerson
  • 2,159
  • 1
  • 19
  • 29
8
votes
2 answers

how do I change my AndroidManifest as it's being packaged by maven

I have the maven goal update-manifest working in my project and updating the attributes I want changed based on the profile I'm packaging with; Unfortunately it changes the manifest that is in source control. I would like it to change the manifest…
danb
  • 10,239
  • 14
  • 60
  • 76
1
2 3
13 14