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

Proguard breaking audio file in assets or raw

I have an activity that plays a beep sound with MediaPlayer that works fine and used to work fine even in the proguarded production version. With the latest release it now suddenly crashes with Caused by:…
7
votes
0 answers

Using specified debug.keystore in Maven Android builds

I know how to specify the release keystore in an Android Maven build but haven't had luck doing the same with a debug build. The release build methodology can be found here -…
snotyak
  • 3,709
  • 6
  • 35
  • 52
7
votes
1 answer

Error building Android project with Maven: Platform/API level 16 not available

I was actually compiling a android project using maven: mvn clean install and i got this error but don't understand why this is happening Failed to execute goal…
Sree
  • 1,694
  • 1
  • 18
  • 29
7
votes
1 answer

Android-Maven-Plugin v3.4.0 cannot find drawable resources when building app

Recently I started mavenizing my android application. One of the obstacles on my way is following: During build maven plugin cannot find drawables which are used in layouts in res directory. I've tarted mavenizing first by using android quick…
voytech
  • 380
  • 3
  • 13
6
votes
1 answer

Android: Maven trobules with ADT 14

recently I update my Android SDK to 14.0.0 Environment: Ubuntu 10.04, Eclipse Helios. The project target is 8 (Android 2.2) In my project I use maven. Then I try to build project i get next error: "Conversion to Dalvik format failed with error…
ihrupin
  • 6,932
  • 2
  • 31
  • 47
6
votes
2 answers

Android Maven plugin - How to start an app automatically after deploying it

I wondering if there's a way to start an application which was deployed using mvn install android:deploy automatically. If this is somehow possible it would speedup development.
Flo
  • 27,355
  • 15
  • 87
  • 125
6
votes
4 answers

You need to use a Theme.AppCompat theme (or descendant) with this activity after adding google-play-services

In application I'm currently developing (it's my first android application) I use android-maven-plugin and maven-android-sdk-deployer. Application had been working great (MainActivity that uses ActionBarActivity had been shown correctly) until I…
6
votes
1 answer

How do I create an apklib for a non maven project

My android application depends on an android library project which comes from a 3rd party. I am switching my build environment over to maven and following the samples has gone fairly smooth but the last step is this. I don't understand what I…
Matt Wolfe
  • 8,924
  • 8
  • 60
  • 77
6
votes
2 answers

mvn android:deploy not working (despite success confirmation)

I'm using the android-maven-plugin 3.2.0 and run the following in order to install and start the apk on my device (Nexus One, Android 2.3.6), which is the only one connected via usb and visible to adb; no emulator running in parallel either. mvn…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
5
votes
1 answer

Native libraries not being attached to the APK using android-maven-plugin

I am trying to build my Android app using Maven. I am using the android-maven-plugin version 3.0.2 (have tried 3.0.0 too). Everything goes fine but the .so files inside my /libs folder do not get attached. The folder structure is like…
Abhinav
  • 38,516
  • 9
  • 41
  • 49
5
votes
1 answer

Android maven plugin: renameManifestPackage results in Resources$NotFoundException

I encountered the following problem: The app I implemented includes another project as a dependency (of type aar). Both projects share the same parent pom. The dependency includes resources, which the app is using. To access the resources within the…
phil155
  • 75
  • 6
5
votes
3 answers

NoClassDefFoundError with Android Support Library and Maven

Using the latest version 4.0.0-rc.1 of the Maven Android Plugin, some classes seem to be missing in the build. I get one of those exceptions when I start the app (two possible ways to start the app): java.lang.NoClassDefFoundError:…
5
votes
3 answers

How to import Android AAR dependencies using Maven in Eclipse?

Note : I am using Maven 3.2.2, Eclipse Luna This is the dependency in my pom.xml that uses Android AAR archive com.github.gabrielemariotti.cards library 1.7.3
Jag
  • 517
  • 2
  • 5
  • 17
5
votes
1 answer

Android Support Library v7 + Maven + Eclipse: apklib dependency not found in workspace

I'm trying to configure the library v7 support in my project so that it uses ActionBarActivity, thus keeping compliant with some of the Android 2.X versions. First, follow the documentation from Google and imported the project…
falvojr
  • 3,060
  • 4
  • 31
  • 54
5
votes
0 answers

Android DarkActionBar theme not found parent with maven

Im try to do a maven android proyect. I have this in style.xml and this error error: Error retrieving parent for item: No resource found that matches the given name …
colymore
  • 11,776
  • 13
  • 48
  • 90
1
2
3
13 14