android-maven-plugin

Error in pom file in Maven project after importing into Eclipse

☆樱花仙子☆ 提交于 2019-12-03 02:15:49
I am actually new to the Maven framework. I already have a Maven project. I installed the Maven plugin etc into my EclipseIDE from http://m2eclipse.sonatype.org/sites/m2e . Then I imported my project and enabled dependencies, but the project is showing too many errors. The pom.xml itself is showing errors. The errors are Project Build Error:unknown packaging:apk Project Build Error:unresolvable build extension:plugin" etc. My error area is: project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0

Could not find tool aapt. Please provide proper Android SDK directory path as configuration parameter

家住魔仙堡 提交于 2019-12-02 19:24:48
I am trying to build a android project using maven. But when I run : mvn clean install I get the following error: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.4.1:generate- sources failed: Could not find tool 'aapt'. Please provide a proper Android SDK directory path as configuration parameter <\sdk><\path>...</path></sdk> in the plugin . As an alternative, you may add the parameter to commandline: -Dandroid.sdk.path=... or set environment variable ANDROID_HOME. -> [Help 1] I have set my ANDROID_HOME to the sdk directory. What

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

本秂侑毒 提交于 2019-12-01 04:07:56
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 com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project helloflashlight: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: Invalid SDK: Platform/API level 16 not available. What should I do? My guess is that your app is configured with API Level 16 as the build target, and you

android-maven-plugin and resource filtering

回眸只為那壹抹淺笑 提交于 2019-11-30 22:59:03
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 pom. In properties file i define one property as myFilteredProperty=${helloFromPOM} and also define the same property in POM: <properties> <helloFromPOM>MY PROPERTY</helloFromPOM> </properties> Switched on filtering on assets dir <build> ... <resources> <resource> <directory>${project.basedir}/assets</directory> <filtering>true</filtering> </resource

mvn android:deploy not working (despite success confirmation)

為{幸葍}努か 提交于 2019-11-30 14:13:00
问题 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 install android:deploy android:run Below is the output in my shell, which looks all good, and I even get a message saying Successfully installed /Users/myuser/Projects/MyCompany/com.mycompany.abc/target/com.mycompany.abc-1.0-SNAPSHOT.apk to

com.jayway.maven.plugins.android.generation2: Plugin execution not covered by lifecycle configuration?

你。 提交于 2019-11-30 06:35:33
问题 I'm stumped. We recently converted our Android project to a Maven project. My partner is using IntelliJ and I'm using Eclipse. He says this builds fine with his setup. I'm very new to Maven and have followed the tutorials and read just about everything I can find to try to resolve this. I have the following error in my pom.xml file: Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: com.jayway.maven.plugins.android.generation2:android-maven

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

∥☆過路亽.° 提交于 2019-11-30 04:05:05
问题 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 start archetype: mvn archetype:generate -DarchetypeArtifactId=android-quickstart -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.8 Then I've copied all my resources to the res directory generated by archetype. IMHO this should be

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

孤街醉人 提交于 2019-11-29 11:19:17
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) unit test in src/test/java . My POM has the appropriate JUnit dependencies and android-maven-plugin references. Sometimes I create an Android Uri instance from a File . Sometimes I have an existing Java URI instance that I've created from a File which I then convert to a Uri . Since I trust neither Java nor Android with files and URIs (don't get me

Proguard breaking audio file in assets or raw

有些话、适合烂在心里 提交于 2019-11-29 07:30:10
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: android.content.res.Resources$NotFoundException: File res/raw/beep.ogg from drawable resource ID #0x7f060000 at android.content.res.Resources.openRawResourceFd(Resources.java:994) at android.media.MediaPlayer.create(MediaPlayer.java:855) at com.digikey.mobile.activity.CaptureActivity.onCreate(SourceFile:135) at android.app.Activity.performCreate(Activity.java:5206) at android.app

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

大憨熊 提交于 2019-11-28 04:48:36
问题 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) unit test in src/test/java . My POM has the appropriate JUnit dependencies and android-maven-plugin references. Sometimes I create an Android Uri instance from a File . Sometimes I have an existing Java URI instance that I've created from a File which