We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Android Proguard Problem

Hi,

I want to build with proguard, i added proguard-rules.pro ;

-keep class asposewobfuscated.** { *; }
-keep class com.aspose.** { *; }
-dontnote asposewobfuscated.**
-dontwarn com.aspose.**

but I get error;


Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xml.utils.PrefixResolver

Warning:asposewobfuscated.zzZVM: can't find superclass or interface org.apache.xpath.functions.Function

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.Expression

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xml.utils.PrefixResolverDefault

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPath

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPathContext

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.compiler.FunctionTable

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.objects.XObject

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xml.utils.PrefixResolverDefault

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPath

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPathContext

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.compiler.FunctionTable

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.objects.XObject

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPath

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.compiler.FunctionTable

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPathContext

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.objects.XObject

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xml.utils.PrefixResolver

Warning:asposewobfuscated.zzZUO: can't find referenced class org.apache.xpath.XPath

Warning:asposewobfuscated.zzZVM: can't find referenced class org.apache.xpath.functions.Function

Warning:there were 27 unresolved references to classes or interfaces.

Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.


Hi Serdarak,


Thanks for contacting support.

I have logged above stated problem as an investigation ticket as PDFANDROID-475 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

Hi,


What is the status, any info about this bug ?

Thanks.

Hi Serdarak,


Thanks for your patience.

The issue reported earlier is under investigation and as soon as we have some further updates, we will let you know. Please be patient and spare us little time.

Is there a progress in 2 months :slight_smile:

@netas,
In reference to the ticket ID PDFANDROID-475, you can include Aspose.Pdf for Android (via Java) as a dependency and obfuscate your project. The problem with obfuscation in your project is not connected with packages aspose.pdf.** using Aspose.Pdf for Android via Java library. Our product team has come to the conclusion that it is not a bug. The ticket ID PDFANDROID-475 has been closed.

Best Regards,
Imran Rafique