Created
May 30, 2013 13:12
-
-
Save tprochazka/5677714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] trouble processing "javax/xml/bind/annotation/XmlAccessorType.class": | |
[INFO] | |
[INFO] Ill-advised or mistaken usage of a core class (java.* or javax.*) | |
[INFO] when not building a core library. | |
[INFO] | |
[INFO] This is often due to inadvertently including a core library file | |
[INFO] in your application's project, when using an IDE (such as | |
[INFO] Eclipse). If you are sure you're not intentionally defining a | |
[INFO] core class, then this is the most likely explanation of what's | |
[INFO] going on. | |
[INFO] | |
[INFO] However, you might actually be trying to define a class in a core | |
[INFO] namespace, the source of which you may have taken, for example, | |
[INFO] from a non-Android virtual machine project. This will most | |
[INFO] assuredly not work. At a minimum, it jeopardizes the | |
[INFO] compatibility of your app with future versions of the platform. | |
[INFO] It is also often of questionable legality. | |
[INFO] | |
[INFO] If you really intend to build a core library -- which is only | |
[INFO] appropriate as part of creating a full virtual machine | |
[INFO] distribution, as opposed to compiling an application -- then use | |
[INFO] the "--core-library" option to suppress this error message. | |
[INFO] | |
[INFO] If you go ahead and use "--core-library" but are in fact | |
[INFO] building an application, then be forewarned that your application | |
[INFO] will still fail to build or run, at some point. Please be | |
[INFO] prepared for angry customers who find, for example, that your | |
[INFO] application ceases to function once they upgrade their operating | |
[INFO] system. You will be to blame for this problem. | |
[INFO] | |
[INFO] If you are legitimately using some code that happens to be in a | |
[INFO] core package, then the easiest safe alternative you have is to | |
[INFO] repackage that code. That is, move the classes in question into | |
[INFO] your own package namespace. This means that they will never be in | |
[INFO] conflict with core system classes. JarJar is a tool that may help | |
[INFO] you in this endeavor. If you find that you cannot do this, then | |
[INFO] that is an indication that the path you are on will ultimately | |
[INFO] lead to pain, suffering, grief, and lamentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment