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

[Android] Task :react-native-screens:compileReleaseKotlin FAILED #2067

Open
bulkinav opened this issue Mar 14, 2024 · 5 comments
Open

[Android] Task :react-native-screens:compileReleaseKotlin FAILED #2067

bulkinav opened this issue Mar 14, 2024 · 5 comments
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android

Comments

@bulkinav
Copy link

Description

IS_NEW_ARCHITECTURE_ENABLED = TRUE
bridgelessEnabled = FALSE

Android Studio 2023.2.1

buildToolsVersion = "34.0.0"
minSdkVersion = 23 // Android 6.0 and above
compileSdkVersion = 34 // Android 14 (gives access to new APIs)
targetSdkVersion = 33 // Android 13
ndkVersion = "25.1.8937393"
kotlinVersion = "1.8.22"


Hello,

When I'm trying to build the my project (release or begug - it does not matter) with IS_NEW_ARCHITECTURE_ENABLED = TRUE, the following error occurs:

> Task :react-native-screens:compileReleaseKotlin
e: file:/app-react/node_modules/react-native-screens/android/src/fabric/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt:13:16 Redeclaration: FabricEnabledViewGroup
e: file:/app-react/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/FabricEnabledViewGroup.kt:7:16 Redeclaration: FabricEnabledViewGroup

Steps to reproduce

  1. Enable NEW ARCHITECTURE
  2. Build the own project

Snack or a link to a repository

N/A

Screens version

3.29.0

React Native version

0.73.6

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Release mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Mar 14, 2024
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added the Platform: Android This issue is specific to Android label Mar 14, 2024
@kkafar
Copy link
Member

kkafar commented Mar 14, 2024

@bulkinav How do you enable new architecture?

You should do it by setting newArchEnabled = true in your application gradle.properties as done here. Seems like that's missing.

@kkafar kkafar added the Close when stale This issue is going to be closed when there is no activity for a while label Mar 14, 2024
@bulkinav
Copy link
Author

Of course, this is enabled using newArchEnabled = true

I also decided to clear the 'node-modules' and '.gradle' folders and now the build of the project stop with a different error (react-native-async-storage/async-storage#1070). So it looks like need to solve it first and only then it will be clear whether the react-native-screens:compileReleaseKotlin FAILED problem will be reproduced or not.

@github-actions github-actions bot removed the Close when stale This issue is going to be closed when there is no activity for a while label Mar 14, 2024
@kkafar
Copy link
Member

kkafar commented Apr 12, 2024

And how did it go?

@tboba
Copy link
Member

tboba commented May 6, 2024

Hi @bulkinav! Just wanted to politely nudge you here, since we still don't have enough information about this bug 😕
Also, how are you trying to enable new architecture mode? Could you provide us minimal reproducer or at least send the output from npx react-native info?
I'll also mark this issue (again) with Close when stale tag, in case of lack of any updates, but I don't have any wrong intentions there! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

3 participants