doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.18k stars 980 forks source link

App Crash With RN 0.74 #2293

Open ErHarinderSingh opened 2 months ago

ErHarinderSingh commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 1 month ago

please wait fro latest configuration

lovegaoshi commented 1 month ago

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

RalissonMattias commented 1 month ago

Any updates?

lovegaoshi commented 1 month ago

dont enable newarch and bridgeless and ur fine for now. otherwise u have to harass facebook from the issue posted above

On Tue, May 21, 2024, 7:03 AM Ralisson Mattias @.***> wrote:

Any updates?

— Reply to this email directly, view it on GitHub https://github.com/doublesymmetry/react-native-track-player/issues/2293#issuecomment-2122714221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZMOVVXMFUZMBZCDHHJYZR3ZDNH2BAVCNFSM6AAAAABF2VJBI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSG4YTIMRSGE . You are receiving this because you commented.Message ID: @.*** com>