Exoplayer won't compile on Android
See original GitHub issueCurrent behavior
My app doesn’t compile.
Reproduction steps
- Add and setup
react-native-video
- Update the dependency on
settings.gradle
to../node_modules/react-native-video/android-exoplayer
Expected behavior
The app would compile
Platform
- Android ExoPlayer
Errors
When running react-native run-android
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
When trying to compile on Android Studio
Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource
Message{kind=ERROR, text=Program type already present: com.google.android.exoplayer2.source.smoothstreaming.DefaultSsChunkSource, sources=[Unknown source file], tool name=Optional.of(D8)}
It seems like a conflict with my dependencies, but how can I find and address it? Searching through the web I couldn’t find any decisive answer.
package.json
"react-native": "0.55.4",
"react-native-video": "2.3.1",
Stack Overflow question: https://stackoverflow.com/questions/52150524/how-to-fix-apparently-invisible-dependency-conflict-on-gradle
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Exoplayer won't compile on Android · Issue #1205 - GitHub
It looks like you're doing all the right troubleshooting steps. Doing the gradle dependencies should show where the problem is. Check in Android ......
Read more >Troubleshooting - ExoPlayer
When running a debug build of your app on Android M and earlier, you may experience choppy performance, audible artifacts and high CPU...
Read more >Not able to compile exoplayer in Android Studio - Stack Overflow
Change exo player dependencies to 1.5.2 and then go to File->Invalidate cache /restart dependencies { compile fileTree(include: ['*.jar'], ...
Read more >Local ExoPlayer build not working with mediation libraries
If I install ExoPlayer via Gradle, everything works fine. Seems like all Google mediation libraries use old ExoPlayer version and conflicts with ...
Read more >After Updating to B4A 10.9 from 10.6 I can't Compile Any ... - B4X
I am using Exoplayer and when I try to compile projects that use it I ... Android doesn't natively support those features so...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed for me by adding
in the android argument of the build.gradle
Have the same problem. Is there another solution for it?