android 引用 library project报错
A工程引用appcompat_v7,设置为library project
B工程引用A工程,运行时报如下错误(B中是否直接引用appcompat_v7都报错):
[2014-11-20 20:58:12 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
[2014-11-20 20:58:12 - xxx] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v7/appcompat/R$anim;
A工程:
Android Private Libraries 中引用的是appcompat_v7\libs
Android Dependencies 中引用的是appcompat_V7\bin (这个是空的只有1k)
bin/dexedLibs下面两个appcompat_v7 jar,其中一个是空的。但是A工程独立运行没有问题。