yuchen931201 / maven-android-plugin

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

Embedded error: ANDROID-040-001 #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create android project in eclipse
2.remove gen default.properties
3.move src java; mkdir src; cd src; mkdir main; move java src\main;
4.copy pom.xml from samples project and adapt on project
5. mvn install

What is the expected output?
success

What do you see instead?
build error

[INFO] C:\home\android-sdk-windows-1.5_r2\platforms\android-1.5/tools/dx
[--dex, --output=C:\home\workspace\my-android\target\classes.dex,
C:\home\workspace\my-android\target\android-classes]
[ERROR] warning: Ignoring InnerClasses attribute for an anonymous inner
class that doesn't come with an associated EnclosingMethod attribute. (This cl
ass was probably produced by a broken compiler.)
[ERROR]
[ERROR] trouble processing:
[ERROR] class name (Queens) does not match path (bprolog/plc/Queens.class)
[ERROR] ...while parsing bprolog/plc/Queens.class
[ERROR] ...while processing bprolog/plc/Queens.class
[ERROR] warning: Ignoring InnerClasses attribute for an anonymous inner
class that doesn't come with an associated EnclosingMethod attribute. (This cl
ass was probably produced by a broken compiler.)
[ERROR] warning: Ignoring InnerClasses attribute for an anonymous inner
class that doesn't come with an associated EnclosingMethod attribute. (This cl
ass was probably produced by a broken compiler.)
...
BUILD ERROR
...
Embedded error: ANDROID-040-001: Could not execute: Command = cmd.exe /X /C
"C:\home\android-sdk-windows-1.5_r2\platforms\android-1.5\tools
\dx --dex --output=C:\home\workspace\my-android\target\classes.dex
C:\home\workspace\my-android\target\android-class
es", Result = 3

What version of maven-android-plugin are you using?
2.0.0-alpha6

What is the output of "mvn -version" on your machine?
Maven version: 2.0.10
Java version: 1.6.0_07
OS name: "windows 2003" version: "5.2" arch: "x86" Family: "windows"

Please provide any additional information below.

Original issue reported on code.google.com by kostya...@gmail.com on 23 Jun 2009 at 4:38

Attachments:

GoogleCodeExporter commented 9 years ago
I get the same error if I create an android project without eclipse as 
described in
http://developer.android.com/guide/developing/other-ide.html

Original comment by kostya...@gmail.com on 23 Jun 2009 at 4:54

GoogleCodeExporter commented 9 years ago
Thank you for the bug report. I am looking in to it.

Original comment by hugo.josefson.old@gmail.com on 23 Jun 2009 at 5:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can confirm that it works for me in Windows XP with the clean pom you 
attached before.

If this problem appears when you add for example dependencies to your Maven 
project, the Maven Android Plugin should not give this 
strange error message. It should understand the problem and have a better error 
message, so that people are actually helped by the 
error message.

I would very much like to understand this problem, so that the plugin can be 
updated with better error messages when these things 
happen.

Would you please attach a pom.xml which causes the Maven build to break and 
give the error message above?

Original comment by hugo.josefson.old@gmail.com on 23 Jun 2009 at 6:12

GoogleCodeExporter commented 9 years ago
I've carrefully analysed my project and I've found that this error can happen 
because
a number of reasons. E.g. if I add in my pom some dependencies. My project 
depends
from my own dependencies, so it has no sense these to mention here. In attached 
pom
there aren't my dependencies.

I've implemented my application with these dependencies. And it works. And now 
I want
make it for Android. In eclipse android-project works too. But because these 
errors I
cannot build my project with maven.

Original comment by kostya...@gmail.com on 23 Jun 2009 at 6:18

GoogleCodeExporter commented 9 years ago
>>Would you please attach a pom.xml which causes the Maven build to break and 
give
the error message above?

I've already explained, that I've set in the pom file dependencies from my own
libraries. These have in their turn their own dependencies. I'm using relative 
much
libraries, so that has no sense pom with all these dependencies.

I can build my projects with maven, but I cannot build my ANDROID project. 
Sorry that
it is so happens.

Original comment by kostya...@gmail.com on 23 Jun 2009 at 6:27

GoogleCodeExporter commented 9 years ago
But I try to get it in some way and I notify you as soon as possible. (I mean 
pom
with this error at building with dependency from some library of 3rd party open
provider.)

Original comment by kostya...@gmail.com on 23 Jun 2009 at 6:35