After updating from com.android.tools.build:7.0.4 to com.android.tools.build:7.2.1, the application ...
k
After updating from com.android.tools.build:7.0.4 to com.android.tools.build:7.2.1, the application began to crash when calling the <reified T> StringFormat.encodeToString(value: T): String method. The bug manifests itself only in the release version, where there is: minifyEnabled true, shrinkResources true Has anyone come across a similar situation and have a solution?
e
probably r8 got smarter and is stripping out or mangling more stuff now. our solution is to never call the inline functions with reified types, but you can also check if you're following the current recommendations on proguard rules: https://github.com/Kotlin/kotlinx.serialization#android