pitate7777777 / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

showAsAction in res/menu/main.xml causes "maven install" from command line to fail #466

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.  New android maven project with no activities
2.  In eclipse - New->Other->Android Activity
3.  Now maven will fail at command line with "mvn install"
4.  I can edit the generated res\menu\main.xml, remove "app:showAsAction=", and 
now maven will not fail.

What is the expected output?

Maven not to fail on "mvn install" with new Android Activity.

What do you see instead?
"mvn install" failed

What version of maven-android-plugin are you using?
I tried on both 3.8.2 and 3.9.0-rc.2

What are the complete output lines of "mvn -version" on your machine?

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 
11:22:22-0400)
Maven home: D:\java\maven\apache-maven-3.1.1
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_05\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

Please provide any additional information below.

I am okay with editing menu.xml if that is needed, but it took me a day to find 
the problem.

Error is attached

Original issue reported on code.google.com by chutche...@gmail.com on 24 Jul 2014 at 8:53

Attachments:

GoogleCodeExporter commented 9 years ago
Please file the issue on github instead.

Original comment by mosa...@gmail.com on 24 Jul 2014 at 9:11

GoogleCodeExporter commented 9 years ago
This doesn't appear to be a problem with android-maven-plugin.

It is aapt that is failing. So either whatever generated res\menu\main.xml 
(Eclipse?) is at fault or aapt is at fault. 

Raise it with them.

Original comment by william....@xandar.com.au on 24 Jul 2014 at 9:49