React Native 执行任务“:app:checkDebugDuplicateClasses'. java. lang. Duplicate class com.yqritc.scalablevideoview.BuildConfig”失败

eeq64g8w  于 2023-04-07  发布在  React
关注(0)|答案(2)|浏览(177)

FAILURE: Build failed with an exception.

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

1 exception was raised by workers: java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.yqritc.scalablevideoview.BuildConfig found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.PivotPoint found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.ScalableType found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.ScalableVideoView found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.ScaleManager found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.ScaleManager$1 found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1) Duplicate class com.yqritc.scalablevideoview.Size found in modules jetified-Android-ScalableVideoView-10e7b4da8b-runtime.jar (com.github.adityaxjha:Android-ScalableVideoView:10e7b4da8b) and jetified-android-scalablevideoview-1.0.1-runtime.jar (com.yqritc:android-scalablevideoview:1.0.1)

eanckbw9

eanckbw91#

如果您使用的是react-native-video,请尝试降级react-native-video版本,“react-native-video”:“5.1.1”对我有效

bnlyeluc

bnlyeluc2#

它仍然不适用于react-native-video =〉@5.1.1和@latest版本
https://i.stack.imgur.com/gr7gz.png

相关问题