Description
Describe the bug
When building with react-native 0.73+ (including upgrading Gradle), I get the following error
Task :app:compileReleaseKotlin 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
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:compileReleaseKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details
To Reproduce
Steps to reproduce the behavior:
- Create react-native 0.73 project
- Follow https://github.com/teslamotors/react-native-camera-kit/blob/master/docs/kotlin.md
- Try building for Android
Expected behavior
Compilation.
Screenshots
If the issue is a visual glitch or UI issue please provide screen shots.
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
- Browser [e.g. chrome, safari] Firefox
- Version [e.g. 22] ...
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1] Android 14
- Browser [e.g. stock browser, safari] Firefox
- Version [e.g. 22] ...
Additional context
Add any other context about the problem here.
Fix:
remove the kotlin-android-extensions plugin line