Ryan
Ryan

Reputation: 10131

Can I safely ignore Proguard's "duplicate definition of library class" when building Android project

I have received many warnings of duplicate definition like..

[proguard] Note: duplicate definition of library class [javax.crypto.KeyGeneratorSpi]

I am using proguard with Android project, unless I have added -ignorewarnings in the config, I was not able to build the app.

But can I safely ignore these warnings?

Upvotes: 3

Views: 3068

Answers (1)

Eric Lafortune
Eric Lafortune

Reputation: 45676

This message is just a note, not a warning. ProGuard doesn't stop processing when there are notes, but, by default, it does stop processing when there are warnings.

Cfr. ProGuard manual > Troubleshooting to see whether the notes or warnings are serious. For an application built using the Android SDK: if it already works in debug mode, everything is probably ok.

Upvotes: 2

Related Questions