报错:
Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;
在Android Studio里build项目时不会报错,但是run项目的时候就会报上面的那个错误
当Module里 添加的依赖和app.build.guild里添加的依赖重复时就会报错
一、解决方案
compile('com.mxn.soul:flowingdrawer-core:1.2.0')
compile('com.rengwuxian.materialedittext:library:2.1.4') {
exclude group: 'com.nineoldandroids'
}
flowingdrawer-core这个依赖里的libs文件夹下有nineoldandroids2.4.0.jar这个jar包。
materialedittext这个依赖里的gradle里compile ‘com.nineoldandroids.library:2.4.0’
所以会导致重复引用了jar包。在materialedittext的依赖里添