程序在运行到手机时,提示错误:More than one file was found with OS independent path 'META-INF/DEPENDENCIES'。
解决方法:
在app的build.gradle中添加如下代码:
packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' }