Obfuscating Java code with Proguard

Asked

Viewed 891 times

2

Problem:

I’m getting warnings of Proguard and with it I can’t outshine my .jar, this is the first time I’ve received these warnings and with that I can’t finish the obfuscation.


Image with details of the problem:

inserir a descrição da imagem aqui


Observing:

Application is working, within the .jar are all the API's (dependencies) needed, but Proguard gives me these warnings.

  • Are you sure the obfuscation is not finished? Warnings should not stop obfuscating.

  • I have yes, Although it is a "Warnings" gets the following message "Please correct the above warnings first". It is in the image.

  • "21 unresolved references for classes and interfaces. Maybe you should add libraries or update their versions. If your code works without the missing classes, you can suppress the alerts with the '-dontwarm' option'"

2 answers

1

This is because the standard Proguard note only mentions lib rt.jar, make the manual note to the lib jce.jar that everything will be settled.

  • I’m gonna test, brother.

  • I must point to the rt.jar and jce.jar? It would be too much to ask what it is rt.jar and jce.jar? The rt I have a notion, but if I can help. I appreciate it.

  • I had to use both, if I use jce.jar is Warnning almost infinity. haha @Petter

0

The mistake is giving you the solution:

"21 unresolved references for classes and interfaces. Maybe you should add libraries or update their versions. If your code works without the missing classes, you can suppress the alerts with the option '-dontwarm'"

  • 2

    I think this fits more as a comment, don’t you think?

  • Interesting, but where I can pass this parameter, I’m using the graphical interface of proguard in my searches did not find a place to pass it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.