你好我正在一邊跑我的Android項目下列錯誤:安卓:Apache的POI重複項:組織/阿帕奇/的xmlbeans/XML /流/ Location.class錯誤
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/xmlbeans/xml/stream/Location.class
我已搜查過這個問題上互聯網,differenet型解決方案所提供的一些如下其中:
1] Enable multidex, (by doing `multiDexEnabled true`),
2] Remove support library v4 as v7 comes with it, (I am using only v7),
3] Increase jvm heap size through gradle or through gradle.properties,
2] Do not use multiple playstore library versions (Which I am not using already)
當我加入的gradle爲dependecy Apache的POI如下所有以上的啓動:
dependencies {
....
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.14'
}
以上都不適用於我的情況。爲什麼會發生這種情況&什麼是可靠的解決方案。
我已經使用https://github.com/andruhon/android5xlsx項目解決了bug,謝謝:) – pcj