Home > front end >  'kotlin-android-extensions' is no longer supported even though not using
'kotlin-android-extensions' is no longer supported even though not using

Time:01-30

Since the weekend assembling a release with ./gradlew assembleRelease --stacktrace won't work any longer
We get the following error even though we are not using either 'kotlin-android-extensions' or 'parcelize'

> Task :detox:compileCoreNativeReleaseKotlin FAILED
e: The Android extensions ('kotlin-android-extensions') compiler plugin is no longer supported. Please use kotlin parcelize and view binding. More information: https://goo.gle/kotlin-android-extensions-deprecation

CodePudding user response:

The error message suggests that you are using the kotlin-android-extensions compiler plugin in your project, even though you claim that you are not using it. To resolve the issue, you should check your Gradle files and make sure that the kotlin-android-extensions plugin is not included. If it is included, remove it and use either the Android KTX library or the findViewById method to access the layout elements in your code.

Alternatively, if you are using the detox library in your project, it might be using the kotlin-android-extensions plugin internally. In that case, you should check the documentation of the detox library and see if there is a workaround or a newer version that is compatible with the latest Android Gradle plugin.

CodePudding user response:

Use "kotlin parcelize" and "view binding" instead. The link provided (https://goo.gle/kotlin-android-extensions-deprecation) offers more information about the deprecation of the "kotlin-android-extensions" plugin.

  • Related