Ashok Kumar
Ashok Kumar

Reputation: 1271

Dexguard skipping jni libs in release apk

I am implementing dexguard in my project, but generated app is crashing and giving following error:

Caused by:

java.lang.UnsatisfiedLinkError: Native method not found: com.gemalto.android.root.internal.MedlJni.goMedlJni:(Ljava/lang/String;Ljava/lang/String;) at com.gemalto.android.root.internal.MedlJni.goMedlJni(Native Method)

I unzipped the generated apk also and found that libs folder is missing in that. What rules should be applied to dexguard file to prevent dexguard from eliminating libs in release apk?

Please suggest the ways to rectify the error.

Upvotes: 0

Views: 1132

Answers (1)

T. Neidhart
T. Neidhart

Reputation: 6200

To keep the native library files use:

-keepresourcefiles lib/**.so

Upvotes: 1

Related Questions