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.

Exoplayer won't compile on Android

See original GitHub issue

Current 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:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesmcn1commented, Mar 4, 2019

Fixed for me by adding

    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }

in the android argument of the build.gradle

0reactions
Hannibal2commented, Feb 14, 2019

Have the same problem. Is there another solution for it?

Read more comments on GitHub >

github_iconTop 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 >

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