Guardsquare / proguard

ProGuard, Java optimizer and obfuscator
https://www.guardsquare.com/en/products/proguard
GNU General Public License v2.0
2.84k stars 407 forks source link

Error kotlin.Result$Failure cannot be cast to Type when optimizing kotlin coroutines code #1

Closed netomi closed 5 years ago

netomi commented 5 years ago

As reported at other places already:

https://github.com/Kotlin/kotlinx.coroutines/issues/1035

The bug has already been identified and fixed for DexGuard (DGD-1298), the fix has to be applied to ProGuard as well.

Created this ticket to trace the fix in a proguard release.

EricLafortune commented 5 years ago

Fixed for the upcoming ProGuard 6.2.0.

netomi commented 5 years ago

ProGuard 6.2.0 has been released.

Jekton commented 4 years ago

By upgrade to proguard 6.2.2, it seems that some code in our AAB module failed oddly. For example, java.lang.IllegalAccessError: Method 'boolean our.package.name.f.x()' is inaccessible to class 'our.package.name.u'