Development articles and debugging stories.

Android AGP 9.0 + Hotwire Native 1.2.5 Build Error Collection
While building a Rails + Hotwire Native app for Android, errors poured out from the AGP (Android Gradle Plugin) 9.0 and Hotwire Native 1.2.5 combination. Here’s the record of fixing them one by one. Error 1: kotlin-android plugin is no longer required Plugin 'kotlin-android' is no longer required for Kotlin support since AGP 9.0 Since AGP 9.0, Kotlin support is built-in and a separate plugin is no longer needed. // build.gradle.kts — remove plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) // ← delete } // keep only this plugins { alias(libs.plugins.android.application) } Error 2: kotlinOptions unresolved reference Unresolved reference: kotlinOptions kotlinOptions was removed in AGP 9.0. Replace with kotlin { jvmToolchain() }. ...