android-maven-plugin

Maven and Android SDK Deployer issue with Mediarouter

一个人想着一个人 提交于 2019-12-11 23:26:58
问题 I am simply trying to setup maven on my machine to build Android projects. I have maven 3.1.1. And have installed all platforms from the Android SDK Manager. When I do: mvn clean install on Maven-Android-SDK-Deployer , Everything seems to work until it encounters Compatibility v7 Mediarouter Library and then the build fails. See the logs below: [INFO] ------------------------------------------------------------------------ [INFO] Building Android Compatibility Extra V7 Mediarouter Library 2.4

How can I add an apklib dependency to your android maven project?

☆樱花仙子☆ 提交于 2019-12-11 09:33:57
问题 I have an android project which I am developing on eclipse and building with maven. I wanted to include a lib (apklib) in it, and similarly to other includes, I have tried appending the dependency to my pom in the following way: <dependency> <groupId>groupID.name</groupId> <artifactId>artifact.name</artifactId> <version>version</version> </dependency> However, when trying to build it either from m2eclipse or from maven on the console, I would get an error (Failed to execute goal on project

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

我的未来我决定 提交于 2019-12-11 04:06:55
问题 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 the following exception when I install and run the packaged app on my device and the app crashes. (It fails on the v8 simulator too). It works fine in both scenarios on android v4.3. Any idea why this would be crashing when built with maven? 01-07

Roboelectric, Maven and the plight of the output folder

限于喜欢 提交于 2019-12-11 04:02:47
问题 Dear awesome community, I have decided to bite the bullet and put together some proper TDD/BDD testing infrastructure for my Android application. I am looking to incorporate Roboelectric in my separate test project in order prevent me from having to launch an emulator for anything remotely Android-y. To see what's what I have imported into my (Eclipse ADT 3.8) environment the RoboElectricSample project found here. But I've hit a snag... everything is working swimmingly compilation wise and I

Android maven plugin to generate multiple dex files

情到浓时终转凉″ 提交于 2019-12-11 03:09:00
问题 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 https://github.com/simpligility/android-maven-plugin/pull/482 the plugin will be able to create android applications that will work ok with the new Android Multidex Support Library 回答1: I have seen in the change log of the android-maven-plugin version 4.0.0-rc.1

jenkins-maven-android when running throwing the error “android-sdk-linux/platforms” is not a directory"

谁说胖子不能爱 提交于 2019-12-11 02:43:43
问题 I start setting up the jenkins-maven-android and i'm facing an issue when running the jenkin job Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.1.1:generate-sources failed: Path "/opt/android-sdk-linux/platforms" is not a directory. Please provide a proper Android SDK directory path as configuration parameter Please help me to fix this issue.. My Machine Details $uname -a Linux development2 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct

android-maven-plugin 3.8.2 not covered by lifecycle

偶尔善良 提交于 2019-12-10 23:03:18
问题 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" error. So of course I tried to do a "Quick Fix" of "Discover new m2e connectors". But the m2e Marketplace says "No marketplace items are available". What do I do? Other Information I have m2e-wtp - Maven Integration for WTP 1.0.1.20130911-1545 org

ClassNotFoundException in apk build with maven

时光怂恿深爱的人放手 提交于 2019-12-10 15:11:09
问题 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 version of the android-maven-plugin. While my apk gets build fine manually from within my IDE (IntellJ), there are problems with the apk built with maven. Obviously something's missing that doesn't put the classes into the apk. When I check both

Maven Filtering

孤街浪徒 提交于 2019-12-10 11:18:04
问题 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: <string name="app_name">${app_name}</string> Within the pom.xml file, I have profile entries: <profiles> <profile> <id>local</id> <properties> <app_env>local</app_env> <app_name>Acme-loc</app_name> </properties> </profile> <profile> <id>dev</id> <properties> <app_env>dev</app

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

安稳与你 提交于 2019-12-07 07:33:04
问题 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 added a google-play-servies library. After that I'm getting the following exception (no changes in application except adding required dependencies to pom.xml): E/AndroidRuntime( 2146): java.lang.RuntimeException: Unable to start activity ComponentInfo