Lukasz Kalnik
03/05/2024, 4:28 PMLukasz Kalnik
03/05/2024, 4:33 PMERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /runner/work/demo-app/demo/build/outputs/mapping/release/missing_rules.txt.
ERROR: R8: Missing class org.slf4j.impl.StaticLoggerBinder (referenced from: void org.slf4j.LoggerFactory.bind() and 3 other contexts)
Aleksei Tirman [JB]
03/06/2024, 7:35 AMAleksei Tirman [JB]
03/06/2024, 7:39 AMLukasz Kalnik
03/06/2024, 10:10 AM-dontwarn org.slf4j.**
To my library's Proguard rules and also to consumer rules.
However this didn't fix the problem. My library uses Ktor, and the app consuming the library doesn't build anymore with this error.Lukasz Kalnik
03/06/2024, 10:11 AMLukasz Kalnik
03/06/2024, 10:51 AM-dontwarn org.slf4j.**
directly into my application (which consumes the library) then there is no error.
The error seems to be only when I include this rule in the library's consumer Proguard rules, somehow they are not consumed by the application.
This may be a problem with my CI though.Lukasz Kalnik
03/06/2024, 2:51 PMLukasz Kalnik
03/06/2024, 2:51 PM