Post

I want to use Kotlin 2.3 because of certain features. To use it, you need AGP 8.13 to avoid R8 issues and thousands of build warnings. But if you use IntelliJ IDEA like me, no luck, buddy. It supports only 8.12 for now.

But of course, the latest IntelliJ EAP supports a newer Android plugin that supports AGP 8.13. A win! Until you realize, it's buggy as hell, it crashes in certain files and then there is no auto-completion nor code highlighting.

I opened a ticket to JetBrains. They identified that it is not an issue of the Kotlin plugin in like 10 minutes (wowo), but the Android one that is crashing (and they posted the relevant stack trace).

0 reposts0 likes

Sorry, I do not have time to wait another week for a fix. So... let's download the Android plugin and disable the functionality that causes this (some lorem ipsum plugin, totally irrelevant - the Lorem ipsum is meant seriously, the code instantiating Lorem Ipsum generator is crashing).

TLDR: We need to remove these two lines from bytecode. That's not easy, right? We can decompile, easily remove, but we cannot compile back. So, bytecode manipulation it is. :( :( :( again.

Is there any online editor I could use to do this? No? The only possibility is to do this programmatically. Do I need Kotlin 2.3 so much that I have to learn this? No, sorry. Wait a moment. Claude code, hello there!