Search code examples
androidbindingmigrationkotlin-android-extensions

Android: Autmomate Migrate from Kotlin synthetics to Jetpack view binding


As the 'kotlin-android-extensions' is deprecated, and I have some library updates pending that depend on this migration.

I have seen the migration guide, which suggests to manually do some changes for migration.

Now my Android application has 100+ uses of 'kotlinx.android.synthetic'. Is there any tool or script that can automatically do the migration? Or are they nuts?


Solution

  • Unfortunately, there is no script and tool that does it automatically. But to make the process easier, I can suggest a practical use. The article below will help.

    Fast migration from Kotlin Synthetics to View Binding