react-nativereact-native-video

Execution failed for task ':app:mergeDebugAssets'. React Native


when I install react-native-video in my react native app, my app shows an error. and I get the following error:

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.yqritc:android-scalablevideoview:1.0.4. Searched in the following locations: - file:/C:/React-Native-Projects/GymBuddyApp/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0. 4.pom

Can someone help me?


Solution

  • in your android/build.gradle file try to edit as follows the clean and build your project

    allprojects {
        repositories {
            .... # Keep the rest
            jcenter() {
                content {
                    includeModule("com.yqritc", "android-scalablevideoview")
                }
            }
        }
    }
    

    refer to this if this solution isn't enough: https://github.com/react-native-video/react-native-video/issues/2468