工程引入了tess-two的库
gradle console错误提示如下:
FAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/googlecode/leptonica/android/AdaptiveMap.class* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.message如下
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/googlecode/leptonica/android/AdaptiveMap.class按照网上的方法搜索了冲突的AdaptiveMap.class,如果存在两个以上的同名类,使用exclude的方法解决,但是只找到一个AdaptiveMap.class,并且查找了library以及extra library还有app下的jar包,除了classes.jar并没有其他相同的包,但是提示classes.jar不可以删除。