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
5
votes
1 answer

deploying android ndk dependencies to maven repositories

I have an android project that depends on a third party, binary-only JNI library. Using ant, I can just drop the .so in libs/ and the headers in jni/ and be done. However, the rest of my android projects use maven, and I would like to be able to…
larvyde
  • 811
  • 1
  • 6
  • 19
5
votes
1 answer

ClassNotFoundException in apk build with maven

I want to switch to maven for my build process in Android development. I followed http://www.sonatype.com/books/mvnref-book/reference/android-dev-sect-archetype.html to create the pom.xml and adjusted the version a bit so that I'm using the latest…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
5
votes
2 answers

Change output folder for Android R.java in Eclipse when using Maven

I have an android project setup using the maven-android plugin. This plugin adheres to maven output folders for the location of the R.java file (i.e. target/generated-sources/r). However, when using this project in Eclipse, I can't configure aapt…
Edward Q. Bridges
  • 16,712
  • 8
  • 35
  • 42
4
votes
3 answers

Eclipse Indigo cannot import maven android that builds OK on command line

I created a maven android project from the command line using this archetype: 19: remote -> android-quickstart (-) I can call "mvn install" on it with success. When I try to import the same project into Eclipse Indigo, I see this: No marketplace…
4
votes
2 answers

Maven publication of multi-modules android library

I am working on an Android SDK made of multiple library modules and a test app module: mySDK |-test-app |-lib-core |-lib-ui |-... I would like to publish it on a Maven repository, with all library modules embedded (but not the test-app). I know how…
sdabet
  • 18,360
  • 11
  • 89
  • 158
4
votes
2 answers

Android studio 2.2.2 publish my app module as library to jcenter with bintray repository

Here, I have done qr code scan project successfully. i have used for qrcodereaderview 1.0.0 v url repository library. this is my dependency. dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' …
4
votes
1 answer

Error: com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources

I am new to Android with maven environment. I am trying to run a sample application, but I am having problems. When I select the Project and do MAVEN->Clean Install, I get following Error: [ERROR] Failed to execute goal…
user1400290
  • 1,682
  • 5
  • 23
  • 43
4
votes
1 answer

Dex: How to set dex.force.jumbo=true in Maven pom via android-maven-plugin?

I have a situation where I want to set dex force jumbo mode to true in my Maven build. How can I set the equivalent of this: dex.force.jumbo=true using the android-maven-plugin plugin?
Richard Guion
  • 427
  • 5
  • 14
4
votes
2 answers

dependency=[com.google.android.gms:google-play-services:apklib:7:compile] not found in workspace

Sorry for adding just another "android maven google maps dependency not found" question, but I think that I have read most of the posts about it and applied all the proposed solutions with no success. I have a maven Android project running OK with…
Diana
  • 2,186
  • 1
  • 20
  • 31
4
votes
3 answers

Simple non-API Android JUnit test in Eclipse with android-maven-plugin?

I run non-Android JUnit tests from within Eclipse every day. Today I wanted to test some of my Android library classes. Oh, the pain. I have an Android library project using android-maven-plugin. I have source files in src/main/java and my (new)…
Garret Wilson
  • 18,219
  • 30
  • 144
  • 272
4
votes
2 answers

NoClassDefFoundError developing library with Android app, Maven, and Eclipse

I'm developing an Android library (SiriRestClient) whose artifacts are managed via Maven, and I'm using Eclipse for development. I'm packaging the artifacts as a JAR file, since I don't have any assets in the project, only Java classes, and there…
Sean Barbeau
  • 11,496
  • 8
  • 58
  • 111
4
votes
2 answers

android-maven-plugin, instrumentation testing and testSize

I'm using maven for building, running and instrumentation testing my Android applications. Android testing framework has three different test scopes @SmallTest, @MediumTest and @LargeTest and android-maven-plugin has ability to select test scope via…
4
votes
1 answer

Android - Maven Build - Proguard - can't find referenced class

At the moment I am trying to setup a maven build for my existing Android application. (had been built with Ant before) While running the proguard obfuscation I am getting a lot of warnings telling me the following: ... can't find referenced class…
denis
  • 1,393
  • 3
  • 14
  • 34
4
votes
3 answers

android-maven-plugin and resource filtering

I'm newbie in maven and trying to configure it to build my android project with android-maven-plugin. I have an application.properties file in assets directory which contains different application settings. And i want to obtain this values from my…
3
votes
1 answer

Android maven plugin - Takes a long time build on every save of a file

I tried to mavenize my android project using maven-android-plugin but every time I try saving any file it takes a long time to build (build automatically) and another quick save, eclipse does not allow me to edit until the entire compilation…
Prasanna
  • 3,703
  • 9
  • 46
  • 74
1 2
3
13 14