zt
07/27/2023, 5:47 PMWarning: there were 605 unresolved references to classes or interfaces.
there were 605 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>)
Warning: there were 299 instances of library classes depending on program classes.
You must avoid such dependencies, since the program classes will
be processed, while the library classes will remain unchanged.
(<https://www.guardsquare.com/proguard/manual/troubleshooting#dependency>)
there were 299 instances of library classes depending on program classes.
Warning: there were 6 unresolved references to program class members.
there were 6 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(<https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedprogramclassmember>)
Warning: there were 1 unresolved references to library class members.
there were 1 unresolved references to library class members.
You probably need to update the library versions.
(<https://www.guardsquare.com/proguard/manual/troubleshooting#unresolvedlibraryclassmember>)
Michael Paus
07/27/2023, 6:02 PMJames Hamilton
07/28/2023, 12:31 PM-dontwarn
config option: https://www.guardsquare.com/manual/configuration/usage#dontwarn
You can use wildcards in -dontwarn
e.g. -dontwarn org.apache.**
Some libraries will reference classes that aren't necessarily available and it doesn't matter to your apps use of the library e.g. they might try to use some class which might or might not be available and catch the exception to handle the case where it isn't available; and your app doesn't even use that part of the code. But in this case, ProGuard wouldn't know that it's OK to ignore the missing class.
Some libraries might provide rules to add in their documentation; or consumer rules that are shipped in the library (but I don't know if the compose plugin uses the consumer rules yet?).
You might find ProGuard rules for specific libraries already in use somewhere, e.g. for Apache POI there are these rules for Android which are probably also relevant for Compose Deskopt https://github.com/centic9/poi-on-android/blob/master/poitest/proguard-rules.pro
You could also ignore all warnings with -ignorewarings
but this is less safe because you might ignore warnings where you should rather add the missing classes.Michael Paus
07/28/2023, 12:49 PMzt
07/28/2023, 2:56 PMDima Avdeev
07/28/2023, 3:08 PM