“Conversion to Dalvik format failed with error 1” on external JAR
来源:互联网 发布:linux exec 3>命令 编辑:程序博客网 时间:2024/06/06 20:03
第一个答案屡试不爽, 推荐! 1.remove except the "Android X.Y" 2.clean 3.打包
Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.
It is also possible that you have a JAR file located somewhere in your project folders (I had copied the Admob JAR file into my src folder) and THEN added it as a Java Path Library. It does not show up under the Package Explorer, so you don't notice it, but it does get counted twice, causing the dreaded Dalvik error 1.
Another possible reason could be package name conflicts. Suppose you have a packagecom.abc.xyz
and a class named A.java
inside this package, and another library project (which is added to the dependency of this project) which contains the same com.abc.xyz.A.java
, then you will be getting the exact same error. This means, you have multiple references to the same file A.java
and can't properly build it.
I solved the problem.
It seems that I have two JAR files on my buildpath that include the same package and classes.
smack.jar
and android_maps_lib-1.0.2
Deleting this package from one of the JAR files solved the p
- “Conversion to Dalvik format failed with error 1” on external JAR
- Conversion to Dalvik format failed with error
- Android Error: Conversion to Dalvik format failed with error 1
- Error: conversion to dalvik format failed with error 1
- Android Error: Conversion to Dalvik format failed with error 1
- error:Conversion to Dalvik format failed with error 1
- Android Error Conversion to Dalvik format failed with error 1
- andriod中如果引入jar包错误出现Conversion to Dalvik format failed with error 1
- andriod中如果引入jar包错误出现Conversion to Dalvik format failed with error 1
- andriod中如果引入jar包错误出现Conversion to Dalvik format failed with error 1
- Android 使用ProGuard混淆jar包Conversion to Dalvik format failed with error 1
- [Android] conversion to dalvik format failed with error 1
- Android Conversion to Dalvik format failed with error 1
- Conversion to Dalvik format failed with error 1
- conversion to dalvik format failed with error 1
- conversion to dalvik format failed with error 1的解决办法
- conversion to dalvik format failed with error 1的解决办法
- android conversion to dalvik format failed with error 1
- eclipse中源代码中文乱码了怎么办
- 配置Eclipse 实现按任意键代码自动补全
- 给IOS对象添加动态属性
- Android SQLiteDatabase数据库的总结
- 最大流算法
- “Conversion to Dalvik format failed with error 1” on external JAR
- ios NSDate NSTring long 时间戳与字符串转换
- UVA - 1267 Network
- 2013 南京regional题目总结【坑】
- Matlab中的.m文件必须放在安装目录下的work文件夹中才能打开
- 求帮助啊~~~MSP430F5438
- 14--5统计每个字母出现的次数
- codeforces 369B
- 解题报告 ch1 排序与搜素