Guardsquare / proguard

ProGuard, Java optimizer and obfuscator
https://www.guardsquare.com/en/products/proguard
GNU General Public License v2.0
2.87k stars 411 forks source link

Caused by: java.lang.NoSuchMethodError: proguard.classfile.util.WarningPrinter #424

Open dengshiwei opened 3 months ago

dengshiwei commented 3 months ago

FAILURE: Build failed with an exception.

BUILD FAILED in 33m 15s

dengshiwei commented 3 months ago
企业微信截图_11248d63-a2f0-49f5-81b7-cd4521e65a74
mrjameshamilton commented 3 months ago

Hi @dengshiwei ! It looks like there is potentially a dependency class with different versions of ProGuard in your dependencies containing different versions of the WarningPrinter class.

It looks like you're in an Android project? If it is a dependency problem, you might be able to solve it with a dependency substitution as documented for AGP <7 :https://www.guardsquare.com/manual/setup/gradleplugin

Note that ProGuard is no longer supported for Android, since R8 is now the default shrinker. The ProGuard Gradle plugin does not work with AGP8+ (#280).