Closed jariwalabhavesh closed 6 years ago
It might be a conflict with react-native-sound
. Do you really need both modules?
@Guichaguri Thanks for response,
I had removed react-native-sound and tried again but it has same issue, i think react-native-brightcove-player
is conflicting because i had found exo player dependency in it's build.gradle
here is 'react-native-brightcove-player build.gradle'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
allprojects {
repositories {
jcenter()
maven {
url "$projectDir/../node_modules/react-native/android"
}
maven {
url 'http://repo.brightcove.com/releases'
}
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
lintOptions {
warning 'InvalidPackage'
}
}
dependencies {
compile 'com.facebook.react:react-native:+'
compile 'com.brightcove.player:exoplayer2:6.+'
}
After implementing react-native-brightcove-player i had face this issue and it is start giving exo error in react-native-track-player. Can you provide suggestion how can i fix that.
Facing the same issue here, I am using react-native-video "^3.1.0" which depends on 'com.google.android.exoplayer:exoplayer:2.7.3'.
You can remove the conflict by unifying the ExoPlayer version, read this: https://github.com/react-native-kit/react-native-track-player/pull/165#issuecomment-407914722
Indeed. That's how I solved the issue, just a heads up there are some deprecation warnings and a few changes you'll have to make to ExoPlayer.java to use an updated version of Exoplayer (change a few method signatures). They don't seem to be altering the player but I am still unsure.
I am facing issue regarding exoplayer, App is crashing on start
Versions react-native: "0.49.0" react-native-track-player: devBranch
My Project dependency