I'm trying to update to Kotlin 2.3 but there are t...
# android
j
I'm trying to update to Kotlin 2.3 but there are tons of errors from R8. > Unexpected error during rewriting of Kotlin metadata for class... Since IntelliJ supports AGP 8.12, I'm stuck there. Official doc says the min. version of r8 is 8.13.19, but that version does not exist on Google Maven nor the repo's source magen/tag. Is there any stable version of R8 that supports Kotlin 2.3? kodee sad I tried 8.13.17 but I see the same errors.
w
Are you sure it's not because of your AGP version? You can bump to 8.13.2 and then build using command line to see if that works. You can also try one of the R8 version 9s, but they might only be compatible with AGP 9.
j
Yeah, I tried AGP update to 8.13 and it works. So, I remember updating R8 separately was working, so either I have to relaize which is the correct version of R8 or it won't work (the separate update) at all.