java - Android duplicate class error when including Apache POI -
i've got problem apache poi excel api (xlsx). i'm using android studio , i've added poi libs "libs" folders. error popping reason (see below). how solve it?, please explain how identified issue?
xmlbeans-2.6.0, poi-ooxml-schemas-3.10.1-20140818, poi-ooxml-3.10.1-20140818, poi-3.10.1-20140818, log4j-1.2.13, junit-4.11, dom4j-1.6.1, commons-logging-1.1, commons-codec-1.5
thanks!
my build.gradle looks following (excluding generic other stuff)...
dependencies { compile filetree(include: ['*.jar'], dir: 'libs') }
android { packagingoptions { exclude 'meta-inf/license' exclude 'meta-inf/notice' exclude 'meta-inf/license.txt' exclude 'meta-inf/notice.txt' } }
my app.iml has no duplicate entries either...
error
error:class org.apache.xmlbeans.xml.stream.location has been added output. please remove duplicate copies. compiler did not target modern .class file format. recommended (org.apache.log4j.chainsaw.controlpanel$1) doesn't come associated enclosingmethod attribute. class produced solution recompile class source, using up-to-date compiler 1 error; aborting
the xmlbeans 2.6 jar maven central contains duplicate class entries. xmlbeans jira has issue open problem. until publish new jar, think i'm going unzip jar, overwrite duplicates, re-zip , put in libs dir now.
Comments
Post a Comment