问题
My application can not run normal when it has duplicate class, with problem like 'no such method'.
The project have two class with the same class name , one is from project code, another is from a jar file. how to check this problem when build the gradle project?
src/main/java/com/kxw/Example.java
gradle.build
compile("com.kxw:xxx:1.0")//contain com.kxw.Example
I expect there has a gradle plugin can check duplicate class in project, like 'maven enforcer plugin' from maven project.
来源:https://stackoverflow.com/questions/57380320/gradle-how-to-check-duplicate-class-in-project