react-native-vlc-media-player icon indicating copy to clipboard operation
react-native-vlc-media-player copied to clipboard

"RCTVLCPlayer" was not found

Open shironyaron opened this issue 4 years ago • 9 comments

Hello, I installed your library in my project and I keep getting this error: ERROR Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager. do you know how to solve it? I'm using an android emulator

Thank you!

shironyaron avatar Feb 11 '21 13:02 shironyaron

Please try downloading the sample repo first.

On Fri, 12 Feb 2021 at 2:39 AM, shironyaron [email protected] wrote:

Hello, I installed your library in my project and I keep getting this error: ERROR Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager. do you know how to solve it? I'm using an android emulator

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/razorRun/react-native-vlc-media-player/issues/55, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EB4OTRJ6UGUQXXP3BTS6PMZDANCNFSM4XO3GSHQ .

razorRun avatar Feb 11 '21 17:02 razorRun

I used to have the same issue and managed to get it working following these steps:

i added this to my android/app/build.gradle

` packagingOptions {

pickFirst 'lib/x86/libc++_shared.so'

pickFirst 'lib/arm64-v8a/libc++_shared.so'

pickFirst 'lib/x86_64/libc++_shared.so'

pickFirst 'lib/armeabi-v7a/libc++_shared.so'

}`

also:

`defaultConfig { ...

multiDexEnabled true //Add this line

}`

and finally upgraded my minSDKVersion to 17 ( android/build.gradle):

`buildscript {

ext {

buildToolsVersion = "29.0.2"

minSdkVersion = 17

compileSdkVersion = 29

targetSdkVersion = 29

}

}`

After these modifications I didn't have any more issues with building and using the package.

juliamsousa avatar Feb 12 '21 12:02 juliamsousa

Same issue on iOS :( Any fix?

cyril94440 avatar Sep 02 '21 08:09 cyril94440

I'm seeing this issue on tvOS too

Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager.

archer56 avatar Dec 11 '21 23:12 archer56

Following, same issue (tvos)

Stack trace: Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager.

This error is located at: in RCTVLCPlayer (at VLCPlayer.js:167) in VLCPlayer (at VLCPlayerView.js:151) in RCTView (at View.js:32).....<Truncated>

jerikthompson avatar Nov 12 '22 23:11 jerikthompson

having the same issue ..any update?

itsmehemant7 avatar Jan 10 '23 22:01 itsmehemant7

Crated a PR to add TVOS support 😄 https://github.com/razorRun/react-native-vlc-media-player/pull/151

Duell10111 avatar Apr 21 '23 15:04 Duell10111

tvOS pr merged

razorRun avatar Apr 21 '23 19:04 razorRun

Please try downloading the sample repo first. On Fri, 12 Feb 2021 at 2:39 AM, shironyaron @.***> wrote: Hello, I installed your library in my project and I keep getting this error: ERROR Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager. do you know how to solve it? I'm using an android emulator Thank you! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#55>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EB4OTRJ6UGUQXXP3BTS6PMZDANCNFSM4XO3GSHQ .

sir i get a same error what to resolve this

rahul-5503 avatar Dec 14 '23 11:12 rahul-5503