react-native-track-player icon indicating copy to clipboard operation
react-native-track-player copied to clipboard

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

Open MrKarimi9425 opened this issue 1 year ago • 8 comments

hello friends I need to use newArchEnabled so I can't disable it. What solution do you suggest to solve this problem?

MrKarimi9425 avatar Dec 28 '24 07:12 MrKarimi9425

Facing the same issue here

HamzaReza avatar Jan 23 '25 08:01 HamzaReza

facing the same issue tell me solution

ShubhamP528 avatar Jan 28 '25 02:01 ShubhamP528

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

jeandiasl avatar Feb 12 '25 10:02 jeandiasl

@dcvz, @lovegaoshi Can you please consider fixing this issue?

aminghorbankhani avatar Feb 17 '25 12:02 aminghorbankhani

Any update @dcvz It should be resolve until now, Sad to see this package is still not configurable with new arch.

zain148 avatar Mar 14 '25 20:03 zain148

facing the same issue in rn0.78.0. tell me a solution.

ashik0019 avatar Mar 23 '25 19:03 ashik0019

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?

StarTechGalaxy avatar Apr 03 '25 06:04 StarTechGalaxy

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

krishnanx avatar Apr 11 '25 13:04 krishnanx

https://github.com/doublesymmetry/react-native-track-player/pull/2478 migrates this library to a turbomodule, which should resolve this issue. Closing.

jspizziri avatar Jun 30 '25 12:06 jspizziri