DX trouble processing "Java/NiO/charbuffer. Class ":

Source: Internet
Author: User

DX trouble processing "Java/NiO/charbuffer. Class ":

Ill-advised or mistaken usage of a core class (Java. * or javax .*)
When not building a core library.

This is often due to inadvertently including a core library file
In your application's project, when using an IDE (such
Eclipse). If you are sure you're not intentionally defining
Core class, then this is the most likely explanation of what's
Going on.

However, you might actually be trying to define a class in a core
Namespace, the source of which you may have taken, for example,
From a non-android Virtual Machine project. This will most
Assuredly not work. At a minimum, it jeopardizes
Compatibility of your app with ure versions of the platform.
It is also often of questionable legality.

If you really intend to build a core library -- which is only
Appropriate as part of creating a full Virtual Machine
Distribution, as opposed to compiling an application -- then use
The "-- Core-library" option to suppress this error message.

If you go ahead and use "-- Core-library" but are in fact
Building an application, then be forewarned that your application
Will still fail to build or run, at some point. Please be
Prepared for angry MERs mers who find, for example, that your
Application ceases to function once they upgrade their operating
System. You will be to blame for this problem.

If you are legitimately using some code that happens to be in
Core Package, then the easiest safe alternative you have is
Repackage that code. That is, move the classes in question
Your own package namespace. This means that they will never be in
Conflict with core system classes. JarJar is a tool that may help
You in this endeavor. If you find that you cannot do this, then
That is an indication that the path you are on will ultimately
Lead to pain, suffering, grief, and lamentation.

[2012-01-03 22:29:53-CLM] dx 1 error; aborting

[2012-01-03 22:29:53-CLM] conversion to Dalvik format failed with error 1


Remove all buildpaths and fix them again. It is caused by references to lower versions of jar on the Internet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.