Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Android: Type androidx.media3.exoplayer.dash.DefaultDashChunkSource$Factory is defined multiple times #4092

Closed
tacianoscur opened this issue Aug 15, 2024 · 9 comments · Fixed by #4097
Labels

Comments

@tacianoscur
Copy link

tacianoscur commented Aug 15, 2024

Version

6.4.4

What platforms are you having the problem on?

Android

System Version

Generating bundle

On what device are you experiencing the issue?

Real device, Simulator

Architecture

Old architecture

What happened?

After upgrading from 6.4.3 to 6.4.4 I started getting this error when trying to create a signed bundle:

Type androidx.media3.exoplayer.dash.DefaultDashChunkSource$Factory is defined multiple times: [path-to-project]/node_modules/react-native-video/android/buildOutput_a15d4dee7fc4eda61b91308cbb6a2e72/.transforms/c8f30f85078ac0af2a73b555487223f1/transformed/release/androidx/media3/exoplayer/dash/DefaultDashChunkSource$Factory.dex, [path-to-project]/android/app/build/intermediates/external_libs_dex/release/mergeExtDexRelease/classes.dex

It does not happen when running the app on the simulator

Reproduction

No response

Reproduction

Step to reproduce this bug are:
Create a signed bundle release with new version 6.4.4

@freeboub
Copy link
Collaborator

Can you run gradlew clean in your android folder ? I suspect this is just a build issue.

@Hassan-Naeem-code
Copy link

I am also having the same issue

@Koykoy200078
Copy link

same issue

@Koykoy200078
Copy link

i just put:
implementation(project(':react-native-video')) {
exclude group: 'androidx.media3', module: 'media3-exoplayer-dash'
}

in my build.gradle to fix temporary

@seyedmostafahasani
Copy link
Collaborator

Please follow these steps:

  • Perform a clean build of the project:
    In Android Studio, go to Build > Clean Project, then go to Build > Rebuild Project.

  • IDE Cache Issues:
    In Android Studio, go to File > Invalidate Caches / Restart, and select Invalidate and Restart. This will clear the cache and restart the IDE.

  • Remove node_modules:
    In the root of your project, run the command rm -rf node_modules, then run yarn install to reinstall the dependencies.

@timostroehlein
Copy link

Im also having the same Issue, I tried to clean the cache and do a fresh install, but that did not help. Downgrading to 6.4.3 resolved the issue for now

@paulrinaldi
Copy link
Contributor

Same issue

@seyedmostafahasani
Copy link
Collaborator

This PR will fix this issue.

@freeboub
Copy link
Collaborator

Fix integrated in 6.4.5. The version has been released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
7 participants