Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elibroftw opened this issue Jan 29, 2024 · 6 comments
Open

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

elibroftw opened this issue Jan 29, 2024 · 6 comments

Comments

@elibroftw
Copy link

elibroftw commented Jan 29, 2024

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

@nadSTC
Copy link

nadSTC commented Apr 20, 2024

any fix for this? same happening to me currently

@elibroftw
Copy link
Author

remove the kotlin-android-extensions plugin line

@neeraj500
Copy link

same error for me, has anyone resolved this?

@KrishnaDolas
Copy link

neeraj500

got any soltion ? i also have this error
Execution failed for task ':app:compileReleaseKotlin'.

@neeraj500
Copy link

@KrishnaDolas Nope

@mandeepBartwal1079
Copy link

is there anyone who fixedit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants