I am encountering an issue while trying to integrate react-native-video
into my project. Whenever I attempt to compile, I receive the following error message: "Could not find media-1.0.0.jar (androidx.media:media:1.0.0)". Here is a snippet from my build.gradle file:
buildscript {
ext {
buildToolsVersion = "30.0.1"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
jcenter()
}
dependencies {
classpath('com.android.tools.build:gradle:3.6.2')
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
allprojects {
repositories {
mavenLocal()
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
Is there any solution for resolving this error? Adding ""implementation 'androidx.media:media:1.0.0'"" does not seem to work.