question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUILD FAILED after installing react-native-video

See original GitHub issue

hello im getting a bug when trying to install the package, im wondering what im doing wrong?

Working with react-native-cli, only installed the package without anything new

Bug

Task :app:mergeDebugAssets FAILED Execution failed for task ‘:app:mergeDebugAssets’. Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’. Could not find com.yqritc:android-scalablevideoview:1.0.4

Platform

Which player are you experiencing the problem on:

  • iOS
  • Android ExoPlayer
  • Android MediaPlayer
  • Windows UWP
  • Windows WPF
  • Windows

Environment info

React native info output:

 // paste it here

Library version: x.x.x

Steps To Reproduce

Expected behaviour

Reproducible sample code

Video sample

If possible, include a link to the video that has the problem that can be streamed or downloaded from.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

34reactions
jason-vaultcommented, Mar 17, 2022

Assuming you are on a later version of React Native, In android/build.gradle you need to add jcenter(), in this case best to be explicit and only include what is necessary:

...
allprojects {
    repositories {
       ... other repositories
        jcenter() {
            content {
                includeModule("com.yqritc", "android-scalablevideoview")
            }
        }
    }
}
4reactions
emil-malmgaard-rasmussencommented, Mar 20, 2022

OP hasn’t answered, but I had same issue and @jason-vault’s suggestion worked 10/10!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run the project after installing react-native-video
After adding the react-native-video to the newly created project I get this error when I want to run the project (android), but once...
Read more >
React Native Video by Example - All Issues Resolved - SiteReq
A step-by-step thorough guide that will use both React Native video and player ... If CocoaPods installation failed for any reason, then run...
Read more >
react-native-video-player - npm
React Native Video Player npm. A React Native video player with a few controls. This player uses react-native-video for the video playback.
Read more >
Integration with Existing Apps - React Native
React Native is great when you are starting a new mobile app from scratch. However, it also works well for adding a single...
Read more >
React Native Skia build failed : r/reactnative - Reddit
My only problem was jcenter was down so It wasn't working. If jcenter is still down go to your node_modules folder find the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found