Hi, I recently tried adding compose to a legacy pr...
# compose
j
Hi, I recently tried adding compose to a legacy project. The piece I added wasn't anything very complex, just a simple card view that displayed an image and a label. It built fine except for release builds. Specifically when minifyEnabled is set to true. Doing this would cause a build failure on minifyWithR8 of the release process.
Copy code
compose_version = "1.0.1"
kotlin_version = '1.5.21'
This would then throw a duplicate classes error for some anonymous classes that were already preexisting before compose was added. Removing the gradle changes needed to use compose fixed the issue. This is the closest stack overflow thread I've seen mentioning something similar.