Reputation: 89
I’m having a problem where I get this error: “TypeError: null is not an object (Evaluating ‘RCTVideoInstance.Constants’)” for the react-native-video library. I am trying it on an android. What can I do to solve this problem? I have also tried the manual installation but it didn't work. Also I have noticed that I get a similar problem with react-native-image-crop-picker. I'll be very grateful if somebody can help me.
Upvotes: 2
Views: 6352
Reputation: 261
I have resolved this issue in android by adding this line in allprojects.repositories
jcenter()
and for the IOS try to uninstall the app from the device/simulator and install using Xcode. Hope its help :)
Upvotes: 0
Reputation: 4148
jcenter()
was removed in favor of mavenCentral()
in 0.65
, add it back to allprojects.repositories
and it'll magically work again in android/build.gradle
.
Original Answer: https://github.com/react-native-video/react-native-video/issues/2468#issuecomment-911368291
Upvotes: 1