We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
当你用Android studio 开发的时候,可能会遇到,这种情况:
我用gradle导入pinyin4j,当指定gradle版本大于2.0时提示重复导入,但是gradle为1.3.x时是正常的!
解决方案:
1 在你的项目里 app/build.gradle 里面的
packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' }
修改成:
packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.properties' exclude 'META-INF/maven/com.belerweb/pinyin4j/pom.xml' }
问题解决!