当报错META—INF/LICENSE缺失时,在当前module的gradle添加:
packagingOptions {
exclude'META-INF'
exclude 'META-LICENSE'
} 若出现该文件夹下多个文件缺失错误,则将其所在目录及所有文件添加: packagingOptions { exclude 'META-INF'
exclude 'META-INF/maven/com.nineoldandroids/library/pom.properties'
exclude 'META-INF/maven/com.nineoldandroids/library/pom.xml'
} 仅供参考。