https://kotlinlang.org logo
Title
b

Beta Tech

05/19/2023, 2:29 PM
Hi Team after adding ' implementation("com.google.firebase:firebase-admin:9.1.1") ' ' implementation ("com.google.firebase:firebase-firestore-ktx:23.0.4") ' these two dependencies , if I'm running 'createReleaseDistributable' than I'm getting this proguard error Warning: there were 1526 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 19 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) 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] I'm attaching here complete output , please look it for reference and help to resolve this issue
k

Kirill Grouchnikov

05/19/2023, 8:42 PM
You’ll need to bring the problem surface down to the absolute minimum. Is it only with Proguard enabled? Is it with both firebase dependencies, or only one of them is enough to trigger this? How do you expect the firestore dependency to work if it’s Android only? How big is your compose project? Does it happen with only the simplest hello world with a single button?
Bring it to the absolute minimum that you can, and then file a bug on compose-multiplatform with the attached zip file of that minimal project
Otherwise you’re just dumping a whole bunch of info in this forum, but then expecting people to try and recreate your project from scratch