Dx 1 error; aborting;Conversion to Dalvik format failed with error 1

[2011-11-12 17:10:50 - Todo_list] Dx
trouble processing "javax/net/ServerSocketFactory.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 as
Eclipse). If you are sure you're not intentionally defining a
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 the
compatibility of your app with future 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 customers 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 a
core package, then the easiest safe alternative you have is to
repackage that code. That is, move the classes in question into
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.

[2011-11-12 17:10:50 - Todo_list] Dx 1 error; aborting
[2011-11-12 17:10:50 - Todo_list] Conversion to Dalvik format failed with error 1

 

问题实质是工程中android.jar包大于一个:

 

解决办法是删除jar包,只保留一个。

时间: 2024-10-27 14:07:27

Dx 1 error; aborting;Conversion to Dalvik format failed with error 1的相关文章

丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决方法_Android

本文分析了丢失Android系统库或者Conversion to Dalvik format failed with error 1错误的解决方法.分享给大家供大家参考,具体如下: 在eclipse开发Android项目时出现的很多问题都可以使用Project--------->clean来轻易解决. 但如果出现说Android库找不到,或者不小心remove了Android系统库,怎么重新添加Android系统库呢?在eclipse里面的Java Build Path里面是没法添加例如Andr

[Android] Eclipse错误:Conversion to Dalvik format failed with error 1

Conversion to Dalvik format failed with error 1解决方法:  第一种情况包导入错误.点击工程-->build path-->libraries-->选中android1.x 或者android2.x ,点击remove. 然后再点击add library-->User Library -->next-->User Libraries-->new 你取一个名字 比如android2.1 点击OK, 选中android2.

解决Conversion to Dalvik format failed with error 1

原文:http://www.cnblogs.com/civet/archive/2011/03/31/2000914.html 原因是不能直接加入android库,  方法:编辑.classpath文件,改为  <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> 即可

android- Conversion to Dalvik format failed with error 1

问题描述 Conversion to Dalvik format failed with error 1 在android 工程上建立了一个librareis里面放里一个android library工程.运行没有问题,打包时报错: Conversion to Dalvik format failed with error 1. 如何解决.谢谢. 解决方案 共享库的话应该是lib文件夹,不知道题主这样做的目的是什么..

WARNING: Re-reading the partition table failed with error 22: Invalid argument

在划分磁盘分区时,遇到错误"WARNING: Re-reading the partition table failed with error 22: Invalid argument" 如下所示: [root@DB-Server u02]# fdisk -l   Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16

backup log is terminating abnormally because for write on file failed: 112(error not found)

昨天遇到一个案例,YourSQLDba做事务日志备份时失败,检查YourSQLDba输出的错误信息如下:   <Exec> <ctx>yMaint.backups</ctx> <Sql> backup log [gewem] to disk = 'M:\DB_BACKUP\LOG_BACKUP\xxxx_[2016-11-22_01h11m05_Tue]_logs.TRN' with noInit, checksum, name = 'YourSQLDba:

windows-loadlibrary failed with error 193:%1

问题描述 loadlibrary failed with error 193:%1 运行安卓模拟器的时候出现loadlibrary failed with error 193:%1

应用-打开premier弹出错误loadlibrary failed with error

问题描述 打开premier弹出错误loadlibrary failed with error 这个软件安装了无法使用,打开了以后弹出错误loadlibrary failed with error1073741795,adobe 的ps都可以使用,而且在可切换显示卡应用程序设置里ps是高性能,但是premier就是锁定为节能,修改不了,不知道这个有没有影响.想问一下怎么解决,或者这个error是什么意思,求助啊!!!!! 解决方案 dll没有找到,或者丢失系统文件.你安装的是不是精简版或者盗版的

MS SQL错误:SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the W

      早晨宁波那边的IT人员打电话告知数据库无法访问了.其实我在早晨也发现Ignite监控下的宁波的数据库服务器出现了异常,但是当时正在检查查看其它服务器发过来的各类邮件,还没等到我去确认具体情况,就收到了电话.我首先检查网络是否畅通,结果发现网络没有问题,然后远程登录到该服务器,查看了一下数据库的服务发现其运行正常,但是在本机使用MSSMS管理工具亦无法连接数据库,当下有两种方案:方案一:使用DAC登录数据库,检查具体情况,方案二:直接去查看错误日志,查看具体错误信息.于是为了快点找到原