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

Android source using maven-android-plugin

I'm using the maven-android-plugin to build my application, and I love it. One thing that's confusing to me is the android sources.jar file that it comes with. If I examine InstrumentationTestRunner in android-1.5_r4-sources.jar, to pick a random…
emmby
  • 99,783
  • 65
  • 191
  • 249
3
votes
2 answers

Possibility of relocating AndroidManifest.xml support for ADT plugin in Eclipse

I'm attempting to develop an Android application using the following: Eclipse Luna 4.4.0 Latest ADT plugin (https://dl-ssl.google.com/android/eclipse/) Maven + android-maven-plugin 4.0.0-rc.2 in Eclipse IDE, everything works fine if the…
xtrycatchx
  • 354
  • 4
  • 10
3
votes
0 answers

Getting an android maven library with native dependencies to work in both gradle and maven projects

I've been banging my head against the wall the entire day trying to figure this out. I'm trying to create an android library X both as an aar and apklib. The reason for this is that we have an android app that builds using android maven plugin and…
unbekant
  • 1,555
  • 22
  • 31
3
votes
0 answers

Android Maven Plugin: NPE in AndroidSdk.getPathForBuildTool

I've created a simple Android project using the Android Quickstart Archetype (pom.xml see below). When I run mvn -e clean compile, I get following error: [ERROR] Failed to execute goal…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
3
votes
2 answers

Android project build with native libraries inside using maven

I have an Android project with Maven that uses internal libraries. When I run a maven install the so library is not inside the jar file generated and in consequence is not inside the apk generated. I'm using Eclipse with maven and android maven…
Plebios
  • 835
  • 1
  • 7
  • 17
3
votes
1 answer

Can't get android-maven-plugin to recognize SDK path

I've tried every advertised method to specify the path to my Android SDK when trying to build an Android app using the android-maven-plugin, and nothing works. No matter what I do, when I run mvn clean install I get ... Could not find tool 'aapt'.…
MidnightJava
  • 1,927
  • 2
  • 18
  • 38
3
votes
3 answers

Building with maven fails

I'm new to Robospice, running mvn install in sample project's directory gives me the following error: [ERROR] Failed to execute goal on project robospice-sample-ormlite-content-provider: Could not resolve dependencies for project…
Ranco
  • 893
  • 2
  • 13
  • 43
3
votes
2 answers

Unresolved maven android dependency when building in IntelliJ

I'm using Maven with my Android project, along with the android-maven-plugin. In my project pom.xml file I declare the dependency like so: com.viewpagerindicator library
3
votes
2 answers

How do I include native .so files for two architectures in an apklib using Maven?

I have two .so files that I need to be packaged with an apklib, with this structure: - libs -- armeabi --- libvinit.so -- armeabi-v7a --- libvinit.so I know I can use install-file to upload this to my local repo and declare them as dependencies in…
Jason Robinson
  • 31,005
  • 19
  • 77
  • 131
3
votes
2 answers

POM error when using ActionbarSherlock with Eclipse and Maven

I'm starting a project which I want to compile with both Eclipse and Maven. On command line everything works fine and if I remove Maven nature the project runs OK in Eclipse. However with Maven enabled I get this error in first line of the…
Bostone
  • 36,858
  • 39
  • 167
  • 227
3
votes
2 answers

Maven release:perform doesn't recognize keystore parameters

I have generated my project using the android-release archetype. In its documentation is indicated to add the android-release profile inside the settings.xmlfile. My ~/.m2/settings.xml looks like this:
rciovati
  • 27,603
  • 6
  • 82
  • 101
3
votes
2 answers

Compile error using android maven

So I'm running into a compile error while using the android plugin for maven. [DEBUG] ANDROID-040-000: Executed command: Commandline = /bin/sh -c cd /Users/adrian/Development/projects/GogoDroid &&…
adrian
  • 2,326
  • 2
  • 32
  • 48
3
votes
1 answer

Maven and Android Backward Compatibility (android.os.StrictMode)

I am new to maven and is trying to setup an android project with it. I am done with the basic setup using maven-android-plugin, and is able to build my project successfully. I have added min-sdk version to my project pom as…
3
votes
2 answers

Android Maven compilation failure

I've been struggling with this for hours now... I have a maven Android lib project, and compiling it fails with the following debug output: [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:2.4:compile from plugin realm…
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
2
votes
0 answers

Switch Maven repository 'cache(http://cache)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols

I'm using a buildSrc module in my Android library project, and a jitpack build at jitci.com fails with the error message shown below. However, locally, the project builds and runs on my phone fine, and a jitpack build of the latest project release…
Raj Narayanan
  • 2,443
  • 4
  • 24
  • 43