Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proguard issue with xpath #19

Open
EnricoAncis opened this issue Sep 11, 2020 · 2 comments
Open

Proguard issue with xpath #19

EnricoAncis opened this issue Sep 11, 2020 · 2 comments

Comments

@EnricoAncis
Copy link

have a issue with an Android app: when I compile with minifyEnabled true
I guess it's an issue with the obfuscation, I have this error:

 b.b.a.c.a: The xpath expression //LoginServicesResponse specified for e was an invalid XPath expression 
...
...
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jaxen.saxpath.base.XPathReader" on path: DexPathList[[zip file "/data/app/xxx.xxxx.xxxx-VosorY5JNoJmDt20C6tGgg==/base.apk"],nativeLibraryDirectories=[/data/app/re.touchwa.braccointernational-VosorY5JNoJmDt20C6tGgg==/lib/arm64, /system/lib64, /system/product/lib64]]

My class with //LoginServicesResponse start with:

@XMLObject("//LoginServicesResponse")
public class LoginServicesResponse {
    @XMLField("LoginServicesResult")
    private String result;
   ...

I'd add the right rule on Proguard file, I've tried with:

I'd add the right rule on Proguard file, I've tried with:

-keepnames class org.jaxen.saxpath.base.XPathReader
or

-keep class org.jaxen.saxpath.base.XPathReader
or

-keep classorg.jaxen.saxpath.base.XPathReader.** { *; }
but they don't solve the problem.

What am I doing wrong?

@AlexGilleran
Copy link
Owner

No idea - maybe try keeping the entire jaxen library?

@EnricoAncis
Copy link
Author

Even the same issue

-keep class org.jaxen.** { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants