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
2
votes
2 answers

Maven Filtering

I am using Maven (3.x) to build an Android application within Hudson. I use filtering/profiles to do text substition of the strings.xml file as part of the build. So within the strings.xml, I will have entries such as:
2
votes
1 answer

Files or folders in non-standard locations in android project using Android Maven Plugin 4+

When I try compile a android project generated with this command: mvn archetype:generate \ -DarchetypeArtifactId=android-quickstart \ -DarchetypeGroupId=de.akquinet.android.archetypes \ -DarchetypeVersion=1.0.11 \ -DgroupId=com.kleber \ …
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
2
votes
2 answers

android maven plugin in netbeans

I am trying to use android in netbeans with maven as the build tool. I want to be able to run the applications in netbeans and also run the emulator in netbeans itself. So far i have been using the command line for creating android applications with…
abhirami
  • 21
  • 3
2
votes
1 answer

Maven, Proguard and JDK8

I'm trying to contribute to the Parceler library but I'm having issues with maven android plugin, obfuscation and jdk8. It is well known issue and I've tried to fix it by installing latest tool and specifying specific proguard.jar path. But looks…
Eugen Martynov
  • 19,888
  • 10
  • 61
  • 114
2
votes
1 answer

Android maven plugin to generate multiple dex files

How can I use android maven plugin to generate multiple dex files instead one to avoid the android 64k method problem? Is possible to do that using this plugin or I have to use gradle to do that? Solution: With this pull request…
Plebios
  • 835
  • 1
  • 7
  • 17
2
votes
1 answer

Android maven + Eclipse luna build/launch problems

I have several problems with my android project written using maven plugin. The first issue is that even if the project builds fine with maven, i cannot launch it. The message that i get in console is the following: Dx trouble writing output:…
Ivan
  • 4,186
  • 5
  • 39
  • 72
2
votes
1 answer

How to display teamcity android lint results xml file generated by build

one of my teamcity builds generates an xml file and I am wondering if there is a plugin to display the file generated against the build. This file happens to be the android lint results of my android application project but I couldn't find an…
sakis kaliakoudas
  • 2,039
  • 4
  • 31
  • 51
2
votes
1 answer

android-maven-plugin works great why bother migrating to gradle? (for Android projects)

gradle seems to be the heat of the moment, but which real benefits would a project take by using gradle instead of android-maven-plugin for Android projects? The reasons listed on the site…
Alécio Carvalho
  • 13,481
  • 5
  • 68
  • 74
2
votes
1 answer

android-maven-plugin 3.8.2 not covered by lifecycle

On Eclipse 4.3.2 my POM was using com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.5.1 with no problems. I tried to upgrade it to 3.8.2 (the latest), and I got the dreaded "Plugin execution not covered by lifecycle configuration"…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
2
votes
1 answer

Develop with Eclipse an Android Maven project

I am trying to run the official HelloFlashlight sample provided by the android-maven-plugin, but Eclipse displays this error. Plugin execution not covered by lifecycle configuration:…
lacton
  • 2,316
  • 2
  • 22
  • 24
2
votes
2 answers

FileNotFoundException when opening wav file from android assets

In our android app we open wav file located in assets/config/notification.wav. To open and play the sound we are using the following code: String soundClipPath = "config/notification.wav" AssetFileDescriptor afd =…
2
votes
1 answer

Android Support Library ActionBar NullPointerException on version 2.2 (level 8) - conflict with preferences.xml

I am using the v7 Support Library to show an ActionBar on Android 2.x. When I deploy the app to the device in my IDE (Intellij IDEA) the app works fine. When I build and package the app to be deployed to the Play Store using maven, I find that I get…
2
votes
2 answers

Android-Maven Failed to execute goal org.codehaus.mojoto when install

I am setting up a new Android-Maven development using the new Android ADT Bundle and Android-Mavem Deployer. The $ANDROID_HOME is /Users/allanhahaha/Documents/adt-bundle-mac-x86_64-20130917/sdk When I ran mvn clean install -X in…
Allan Jiang
  • 11,063
  • 27
  • 104
  • 165
2
votes
0 answers

How to reference interface from android-app-1 in android-app-2

I use android-maven-plugin. I want to create the following project structure: / -- parent / ---- main android application / ---- main android application integration tests / ---- data access android application / ---- data access android application…
midnight
  • 3,420
  • 3
  • 36
  • 58
2
votes
1 answer

Robolectric, Dagger and compile time $ModuleAdapter creation

Following on from the other questions in my Android TDD series, I have managed to get as far as using Robolectric, Mockito, Maven and ABS to unit test my Android developments. Evidently, I am seemingly pushing my own knowledge boundaries but the…
BrantApps
  • 6,362
  • 2
  • 27
  • 60