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
hello friends I need to use newArchEnabled so I can't disable it. What solution do you suggest to solve this problem?
Facing the same issue here
facing the same issue tell me solution
unfortunately React Native Track Player does not support new RN architecture at the moment.
so you have to either disable it
bare workflow: in file android/gradle.properties change newArchEnabled to false expo: disabling it by setting newArchEnabled to false in your app.json or try to apply suggested patch in this github issue.
also you can find more information about this problem in this PR from RN team, but RNTP team is still working on it.
hope it helps.
https://stackoverflow.com/questions/79225605/react-native-track-player-error-unable-to-parse-reactmethod-annotation-from-na
@dcvz, @lovegaoshi Can you please consider fixing this issue?
Any update @dcvz It should be resolve until now, Sad to see this package is still not configurable with new arch.
facing the same issue in rn0.78.0. tell me a solution.
Experiencing the same error with the following versions: "react": "18.3.1" and "react-native": "0.77.1." Is there any update on the new architecture?
I'm trying to use [email protected] with React Native 0.76+ in Bridgeless mode, but I keep hitting this error:
Exception in HostObject::get for prop 'TrackPlayerModule': 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.
I am not entirely sure but i think it happens because the modules in TrackPlayerModule.kt returns Job which is not supported by Turbomodules system
https://github.com/doublesymmetry/react-native-track-player/pull/2478 migrates this library to a turbomodule, which should resolve this issue. Closing.