Android出现Multiple dex files define...

来源:互联网 发布:程序员不善于沟通 编辑:程序博客网 时间:2024/06/07 07:56
1、  运行时出现这样的错误提示:
[2015-04-07 19:11:01 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;
[2015-04-07 19:11:01 - test] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/annotation/AnimRes;


解决:libs目录下点右键--Build Path--Configure Build Path..  在Order and  Export  下去掉Android Private Libraries的勾选


然后再Clearn项目
2、上面后又出现错误:
[2015-04-07 19:26:51 - test] WARNING: unable to write jarlist cache file D:\Users\Administrator\workspace\test\bin\jarlist.cache
选择的已经是android:targetSdkVersion="19" 了,但是还是报错,然后重新写了一遍android:targetSdkVersion="19" 后再clean,就OK了
0 0