Reputation: 1271
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
Reputation: 6200
To keep the native library files use:
-keepresourcefiles lib/**.so
Upvotes: 1