最近莫名奇妙遇到“Conversion to Dalvik format failed: Unable to execute dex”错误,stackoverflow以后得到结果
把项目中classpath文件中<classpathentry kind="lib" path ="自定义jar的地址" /> 修改成 <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>,删掉
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>。然后就OK了
本文提供了解决Android项目中遇到的ConversiontoDalvikformatfailed:Unabletoexecutedex错误的方法,通过修改classpath文件中的配置,将自定义jar的地址改为Android.Framework路径,并删除Libraries配置项,成功解决了问题。
4万+

被折叠的 条评论
为什么被折叠?



