Proguard warnings disguised as build error #7

Open
opened 2025-03-04 21:29:19 -05:00 by blizzardfinnegan · 0 comments

Manual regarding initial setup of Proguard: https://www.guardsquare.com/manual/setup/gradleplugin

Currently fails on my setup with the following:

Warning: there were 886 unresolved references to classes or interfaces. 
    You may need to add missing library jars or update their versions. 
    If your code works fine without the missing classes, you can suppress
    the warnings with '-dontwarn' options. 
    (https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedclass)
Unexpected error
java.io.IOException: Please correct the above warnings first.
       at proguard.Initializer.execute(Initializer.java:544) ~[proguard-base-7.2.2.jar:7.2.2]
        at proguard.pass.PassRunner.run(PassRunner.java:24) ~[proguard-base-7.2.2.jar:7.2.2]
        at proguard.ProGuard.initialize(ProGuard.java:328) ~[proguard-base-7.2.2.jar:7.2.2]
        at proguard.ProGuard.execute(ProGuard.java:130) ~[proguard-base-7.2.2.jar:7.2.2]
        at proguard.ProGuard.main(ProGuard.java:623) [proguard-base-7.2.2.jar:7.2.2]

> Task :desktopApp:proguardReleaseJars FAILED

Reproducibility steps:

  1. Clone repository and install dependencies (Android SDK, Java17, Java11, etc)
  2. Run ./gradlew packageReleaseDeb (this may take some time if dependencies are not yet installed)
Manual regarding initial setup of Proguard: https://www.guardsquare.com/manual/setup/gradleplugin Currently fails on my setup with the following: ``` Warning: there were 886 unresolved references to classes or interfaces. You may need to add missing library jars or update their versions. If your code works fine without the missing classes, you can suppress the warnings with '-dontwarn' options. (https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedclass) Unexpected error java.io.IOException: Please correct the above warnings first. at proguard.Initializer.execute(Initializer.java:544) ~[proguard-base-7.2.2.jar:7.2.2] at proguard.pass.PassRunner.run(PassRunner.java:24) ~[proguard-base-7.2.2.jar:7.2.2] at proguard.ProGuard.initialize(ProGuard.java:328) ~[proguard-base-7.2.2.jar:7.2.2] at proguard.ProGuard.execute(ProGuard.java:130) ~[proguard-base-7.2.2.jar:7.2.2] at proguard.ProGuard.main(ProGuard.java:623) [proguard-base-7.2.2.jar:7.2.2] > Task :desktopApp:proguardReleaseJars FAILED ``` Reproducibility steps: 1. Clone repository and install dependencies (Android SDK, Java17, Java11, etc) 2. Run `./gradlew packageReleaseDeb` (this may take some time if dependencies are not yet installed)
Azea_Avenbright was assigned by blizzardfinnegan 2025-03-04 21:29:20 -05:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Menagerie/Menagerie_Cookbook#7
No description provided.