Skip to content

React Native 0.73 Android - Task :app:compileReleaseKotlin FAILED #638

Open
@elibroftw

Description

@elibroftw

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:

  1. Create react-native 0.73 project
  2. Follow https://github.com/teslamotors/react-native-camera-kit/blob/master/docs/kotlin.md
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions