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

How to add this library along with react-native-video? #396

Open
eagleblack opened this issue Jul 24, 2023 · 4 comments
Open

How to add this library along with react-native-video? #396

eagleblack opened this issue Jul 24, 2023 · 4 comments

Comments

@eagleblack
Copy link

Whenever i try to build this library with rn-video it gives following error.
AILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.yqritc.scalablevideoview.BuildConfig found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.PivotPoint found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.ScalableType found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.ScalableVideoView found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.ScaleManager found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.ScaleManager$1 found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)
Duplicate class com.yqritc.scalablevideoview.Size found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.4-runtime (com.yqritc:android-scalablevideoview:1.0.4)

@abolfazlyounesi
Copy link

same error

@eagleblack
Copy link
Author

I found a solution to it.
Inside node_module/ react-native-video/Android/app/build.gradel file.

Replace

(com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b)

Inside dependency with

com.yqritc.scalablevideoview.ScalableVideoView

And it will start working.

@Dhawan7
Copy link

Dhawan7 commented Aug 4, 2023

Same error Please help to resolve this

@sanketappsimity
Copy link

i used Above solution and its working fine
implementation 'com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b'

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

No branches or pull requests

5 participants
@Dhawan7 @eagleblack @abolfazlyounesi @sanketappsimity and others