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
1
vote
0 answers

trouble writing output: Too many method references: 67245; max is 65536. Solving with Proguard

I've just reached the dex limit of 65536 methods and I am trying to solve this problem using proguard. Specifically I am trying to understand exactly what it is that Progurard tries to remove. Does proguard only check for unused classes/methods in…
sakis kaliakoudas
  • 2,039
  • 4
  • 31
  • 51
1
vote
1 answer

android-maven-plugin: Binding proguard to later phase

In my maven build, I'd like to execute the proguard goal after the tests, in order to get test result faster. Therefore, I tried to bind it to prepare-package phase. However, my config bellow does not have any effect. The proguard goal is still…
schnatterer
  • 7,525
  • 7
  • 61
  • 80
1
vote
1 answer

Android gradle build: Adding artifacts to Maven local repository from output folders

I'm using Android-Studio to build a project that have a sub module (AAR). In my build I'm creating both DEBUG and RELEASE flavors of my APK / AAR. I used the android-maven-plugin to install my APK and AAR to my local repository. After simple…
Ika
  • 1,456
  • 1
  • 15
  • 24
1
vote
1 answer

Android\Java Maven skip build module if no changes

I have a few modules in my project When i execute mvn clean install it will be rebuild all my modules and it will be a long long time.( I know - it was because i execute a clean goal) What the goal i need to execute or set a PROPERTY in pom.xml…
Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119
1
vote
0 answers

com.simpligility.maven.plugins:android-maven-plugin helloflashlight eclipse issue

my issue is to make eclipse build the helloflashlight exemple from the android-maven-plugin my env : eclipse luna x64 (on windows 7 x64 pro) set-up with: jdk 1.8.0_25 (x64) m2e - Maven Integration for Eclipse (1.6.0.20150109-0342) Android for…
1
vote
1 answer

How to avoid AndoridManifest overriding with maven

I have a project almost equals to the android-quickstart archetype: mvn archetype:generate \ -DarchetypeArtifactId=android-quickstart \ -DarchetypeGroupId=de.akquinet.android.archetypes \ -DarchetypeVersion=1.0.11 \ -DgroupId=your.company…
pomber
  • 23,132
  • 10
  • 81
  • 94
1
vote
0 answers

android-maven-plugin : update package name with doesn't work

My android project's AndroidManifest.xml looks like this: package="com.my.app" …
Leem.fin
  • 40,781
  • 83
  • 202
  • 354
1
vote
1 answer

android-maven-plugin:3.8.0 requires Maven version 3.1.1

I have created an android project using maven archetype. When I try clean install from Intellij Idea, I get the following error. The plugin com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.8.0 requires Maven version 3.1.1 When I…
Prasanna
  • 2,593
  • 7
  • 39
  • 53
1
vote
2 answers

maven android error reading file source.properties

I am trying to build a simple hello world android app. I am getting this error: Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven- plugin:3.9.0-rc.2:generate-sources (default-generate-sources) on project ndbc:…
mmaceachran
  • 3,178
  • 7
  • 53
  • 102
1
vote
0 answers

maven android plugin , app does not install on phone when google play service is used

I am developing one of the application for android using android maven plugin . application works well till i dont provide google play service (GPS) as dependency ( it took me really too much time to install google play service in local repo which…
krish
  • 31
  • 5
1
vote
0 answers

Android Maven Deployer

I am using the mosabua android deployer to deploy android libraries to my local maven repo. I am experiencing the following error [ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties …
jiduvah
  • 5,108
  • 6
  • 39
  • 55
1
vote
1 answer

Compiling Android project with JDK 1.7

My Android project is set up to use Maven, so I imported into IntelliJ from the pom.xml file. The compiler settings in IntelliJ are correctly pointing to 1.7, but when I try to compile I get: Error: java: javacTask: source release 1.7 requires…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
1
vote
0 answers

multiple resource directories for maven android build

when using android-maven-plugin, there is resourceDirectory parameter which allows you to configure resource directory. How to configure multiple resource directories? The following is an example pom file, resourceDirectory can be configured for…
colin
  • 101
  • 2
  • 4
1
vote
1 answer

android-maven-plugin - android.content.res.Resources$NotFoundException thrown by Google Play Services

I'd like to use Google Play Services in my mavenized android project. I used maven-android-sdk-deployer to install Google Play Services from my Android SDK into my local maven repository. After that, i added following dependencies to my pom.xml: …
1
vote
2 answers

Eclipse and Android with Maven: Unable to instantiate activity ComponentInfo with java.lang.ClassNotFoundException

I've got one issue with Eclipse. There is an android project configured with Maven. Here is pom.xml from child project (all versioning configuration was moved o parent pom.xml): android.support