Proguard: Exclude Android Library Project

I have two projects Project_A and Project_B. Project_B is the library project for Project_A. Project_B has an external jar in its libs folder.

When I run proguard on Project_A, I get errors like:

(Unknown verification type [69] in stack map frame)) 

The error refers to the file present in the external bank (which is present in libs Project_B)

I use the standard proguard.cfg file that we get in the android SDK.

I tried the "-keep class. **" but still I get the same error.

Please let me know if there is a way by which I can exclude Project_B (library project) and its banks from obfuscation. I want to run proguard only on Project_A, and not on its library project.

+6
source share
1 answer

Processing the ProGuard application correctly requires the entire class hierarchy, so you really can't leave the library.

The library code looks corrupt; most likely, it was processed after processing by the tool that ruined it. Some tools do not update validation information properly. This information is optional, but ProGuard expects it to be correctly generated. You should check to see if there is a newer version of the library or post-processing facilities.

0
source

Source: https://habr.com/ru/post/943430/


All Articles