最近在做eclipse项目转移的 android studio 的时候在安装的时候报了这个错误
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
然后在网上找了很多的方法发现 在gradle 中
android { packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } }记住一定要在 android 的 这个大括号下面 , 重新打包就对了