Conversion to Dalvik format failed with error 1

Source: Internet
Author: User

[2015-01-22 20:10:24-real_publish_20150121] Dx
Trouble processing "Java/text/fieldposition.class":

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

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

However, you might actually is trying to define a class in a core
namespace, the source of which you are taken, for example,
From a non-android virtual machine project. This would most
Assuredly not work. At a minimum, it jeopardizes the
Compatibility of your app with a future versions of the platform.
It is also often of questionable legality.

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

If you go ahead and use "--core-library" but is in fact
Building an application and then being forewarned that your application
Would still fail to build or run at some point. Please be
Prepared for angry customers who find, for example, that your
Application ceases to function once they upgrade their operating
System. You'll be the blame for this problem.

If you is legitimately using some code that happens
Core package and then the easiest safe alternative
Repackage that code. That's, move the classes in question into
Your own package namespace. This means that they would never be in
Conflict with core system classes. Jarjar is a tool that could help
You endeavor. If you find the cannot do this and then
That's an indication, the path you were on would ultimately
Leads to pain, suffering, grief, and lamentation.

[2015-01-22 20:10:24-real_publish_20150121] Dx 1 Error; Aborting
[2015-01-22 20:10:24-real_publish_20150121] Conversion to Dalvik format failed with error 1

The cause is typically a duplicate jar package (but the file name is not found), remove all BuildPath, and then re-import the jar.

For example: The main project contains Android 4.4 (Android.jar), and Android dependencies introduces a Android.jar.

3 reference-related groups under the project's root directory

Android 4.4: Inside is generally Android.jar, is an Android project must

Android Dependencies: It is generally referred to other projects generated by the LIB, the operation of the right-click Project--properities--android--in the is library to join the project

Referenced Libraries: Inside is the result of the jar right--add to path under the Libs folder

Other unrelated groups are removed, such as Android Private

done!

Conversion to Dalvik format failed with error 1

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.