I use android studio 2.0 version. I use the gradle to build the program, take this the question:
我知道这个问题在Android studio 0.7版本中也有同样的问题。我看到链接复制的重复文件(Android Studio 0.4.0) https://stackoverflow.com/questions/20673888/duplicate-files-copied-android-studio-0-4-0
But, I follow this way:
但这个方法对我来说不起作用!
你可以帮帮我吗?我在等你!
我遇到了同样的问题,发现重复的文件与 AndroidStudio 2.0 预览版无关,可能是 gradle 造成的。
请尝试以下操作:
packagingOptions {
exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml'
exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties'
}
如果您已解决重复问题但遇到 ClassNotFound 问题,请参阅此.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)