Today upgraded Android studio to 2.1 official version, found its recommended update gradle version, so the Gradle update to 2.1.0, but after the update project can not run, error: Duplicate files copied in APK Meta-inf.
The previous project also encountered the same problem, just need to add the following code in the app project (my project has several sub-module):
packagingoptions { ' meta-inf/license.txt ' meta-inf/license ' meta-inf/ NOTICE ' Meta-inf/license.txt '}
However, my project has packagingoptions, and later found that my jar package is not in the app project, is included in the other sub-module Librarya, so with a trial mentality, Add Packagingoptions to Librarya, compile and pass, normal operation.
Think the previous version in the application project is enough to declare that this is good, do not know why this update version of the library project also need to declare, I hope you can change back.
Android studio-gradle Update after upgrading to 2.1.0, occurs duplicate files copied in APK Meta-inf