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

App Crash With RN 0.74 #2293

Open
ErHarinderSingh opened this issue Apr 6, 2024 · 23 comments
Open

App Crash With RN 0.74 #2293

ErHarinderSingh opened this issue Apr 6, 2024 · 23 comments
Labels

Comments

@ErHarinderSingh
Copy link

Console gives following error in debug mode on android
(NOBRIDGE) LOG Bridgeless mode is enabled (NOBRIDGE) ERROR Error: Exception in HostObject::get for prop 'TrackPlayerModule': com.facebook.react.internal.turbomodule.core.TurboModuleInteropUtils$ParsingException: Unable to parse @ReactMethod annotation from native module method: TrackPlayerModule.add(). Details: Unable to parse JNI signature. Detected unsupported return class: kotlinx.coroutines.Job

In Release build, it won't get started.
Same on iOS (But I am not sure if app is not working with this issue or other issue)

cc : @dcvz

@eflashcards
Copy link

eflashcards commented Apr 7, 2024

Same as this too!
Android - No problem in ReactNative - 0.73.6 with newArchEnabled=false
=> It happens when set newArchEnabled=true.

Screenshot 2024-04-07 at 10 56 16

@lovegaoshi
Copy link
Contributor

there is a very recent pr currently for this
but imo so many libraries break with newarch compatibility layer right now its worth to wait until most others catch up for devs

@AkilUnik
Copy link

AkilUnik commented May 7, 2024

please wait fro latest configuration

@lovegaoshi
Copy link
Contributor

since 0.74.1 is released i guess its worth to mention at here again. bridgeless new arch is not compatible atm.
facebook/react-native#44255

@RalissonMattias
Copy link

Any updates?

@lovegaoshi
Copy link
Contributor

lovegaoshi commented May 21, 2024 via email

@puckey
Copy link
Collaborator

puckey commented Aug 17, 2024

since 0.74.1 is released i guess its worth to mention at here again. bridgeless new arch is not compatible atm. facebook/react-native#44255

Looks like bridge support is fixed in latest nightly: facebook/react-native#44255 (comment)

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Aug 17, 2024 via email

@AlirezaHadjar
Copy link

I can confirm that it's not working with 0.75.2 with new arch enabled.

@jParaskevopoulos
Copy link

So, almost 2025 and still not working, any news ?

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Oct 29, 2024 via email

@MohsinAtArbisoft
Copy link

I just updated to React Native 0.76.1, but the app still crashes on any file where import TrackPlayer from 'react-native-track-player' is used. Both on android and iOS.

@lovegaoshi
Copy link
Contributor

lovegaoshi commented Oct 30, 2024 via email

@jviall
Copy link

jviall commented Oct 30, 2024

please track the new arch progress in the respective PR instead of here

@lovegaoshi which PR are you referring to? Do you expect that fixing this issue will provide support for 0.76 (and beyond)? I suspect it's the root of my issue in #2368

@lovegaoshi
Copy link
Contributor

image
this issue is specifically related to the new arch compatibility. its likely not related to ur issue.

it doesnt seem u linked the lib right, but i neither generated my repo with expo nor use custom RN to tell. all i can say is refer to the example app as its a known working app. u can diff it against the template and see where it differs and where u missed.
my new arch example is generated from the cli template.

@MohsinAtArbisoft
Copy link

I applied this patch react-native-track-player+4.1.1.patch, but still no luck. iOS and android app crashes wherever import TrackPlayer from 'react-native-track-player' is used. using react-native 0.76.1

@lovegaoshi
Copy link
Contributor

pls see the screen shot above. there are 2 PRs and both have to be applied.

i can confirm the new arch runs, both at my fork and my new arch example. since neither do u post ur repo, nor I want to read ur repo, u should consult the example app in my linked repos.

@yudican
Copy link

yudican commented Nov 12, 2024

in file android/gradle.properties change newArchEnabled to false

@asifbadeghar54
Copy link

asifbadeghar54 commented Nov 29, 2024

Same as this too! Android -
"react-native": "0.76.3",
"react-native-track-player": "^4.1.1",
newArchEnabled=true.

Screenshot 2024-04-07 at 10 56 16

Hi did u resolved this issue even iam also facing same on 0.76.3 ?

@ryanzhouff
Copy link

Same as this too! Android - No problem in ReactNative - 0.73.6 with newArchEnabled=false => It happens when set newArchEnabled=true.

Screenshot 2024-04-07 at 10 56 16

same issue. using Expo SDK 52 and react native 0.76.

@varadaraj772
Copy link

Same as this too! Android -
"react-native": "0.76.3",
"react-native-track-player": "^4.1.1",
newArchEnabled=true.
Screenshot 2024-04-07 at 10 56 16

Hi did u resolved this issue even iam also facing same on 0.76.3 ?

any solution?

@PankajSingh-ops
Copy link

its still not fixed

@SMNggada
Copy link

any update on the issue

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

No branches or pull requests