Someone was able to get the Apache POI library to work after obfuscation. I read a lot of information, tried different methods, but still get the error:
*a.a.b.a: Provider com.bea.xml.stream.EventFactory not found org.apache.poi.openxml4j.opc.internal.marshallers.PackagePropertiesMarshaller.<clinit>(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.init(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.Package.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.ZipPackage.<init>(Unknown Source) at org.apache.poi.openxml4j.opc.OPCPackage.create(Unknown Source) at org.apache.poi.xssf.usermodel.XSSFWorkbook.newPackage(Unknown Source) at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(Unknown Source) at org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source) at org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source) at org.apache.poi.xssf.streaming.SXSSFWorkbook.<init>(Unknown Source)* I added the jars files into libs folder: poi-ooxml-schemas-3.12-20150511-a.jar and poi-3.12-android-a.jar. My proguard-rules.pro: -dontwarn org.apache.** -dontwarn org.openxmlformats.** -dontwarn schemasMicrosoftComVml.** -dontwarn org.w3.x2000.** -dontwarn org.etsi.uri.** -dontwarn com.microsoft.schemas.** -dontwarn schemasMicrosoftComOfficeOffice.** -dontwarn schemasMicrosoftComOfficeExcel.** -dontwarn com.google.common.** -keeppackagenames org.jsoup.nodes -keepattributes *Annotation*, EnclosingMethod,Signature, JavascriptInterface -keep class com.google.common.** #Parcel -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -keep class org.parceler.Parceler$$Parcels #Apache poi -keep public class org.apache.poi.** {*;} -keep class com.fasterxml.aalto.** {*;} -keep class org.apache.xmlbeans.** {*;} -keep class org.openxmlformats.schemas.** {*;} -keep class com.microsoft.schemas.** {*;} #BUTTERKNIFE -keep public class * implements butterknife.internal.ViewBinder { public <init>(); } # Prevent obfuscation of types which use ButterKnife annotations since the simple name # is used to reflectively look up the generated ViewBinder. -keep class butterknife.* -keepclasseswithmembernames class * { @butterknife.* <methods>; } -keepclasseswithmembernames class * { @butterknife.* <fields>; } -- View this message in context: http://apache-poi.1045710.n5.nabble.com/Android-Proguard-Apache-POI-tp5727688.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@poi.apache.org For additional commands, e-mail: user-h...@poi.apache.org