Flutter agora 依赖重复错误

Flutter agora dependency duplication error in grade

提问人:Gautam singh maurya 提问时间:9/8/2023 更新时间:9/8/2023 访问量:22

问:

实施agora插件后,我收到此错误。如果我删除了插件,我的代码运行良好。

[2023年9月8日上午11:01]Flexsin Avaneesh:在调试模式下在 sdk gphone64 x86 64 上启动 lib/stage/main_stage.dart... 正在运行 Gradle 任务“assembleStageDebug”... 错误:无法解析以下类的超类型。请确保您在类路径中具有所需的依赖项: 类 io.agora.advancedvideo.externvideosource.ExternalVideoInputManager,未解析的超类型:io.agora.rtc.mediaio.IVideoSource 添加 -Xextended-compiler-checks 参数可能会提供其他信息。

失败:生成已完成,但有 2 次失败。

1:任务失败,出现异常。

  • 出了什么问题: 任务“:app:checkStageDebugDuplicateClasses”的执行失败。

执行 com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable 时发生故障 重复类 io... [2023年9月8日上午11:01]Flexsin Avaneesh:在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复的类 io.agora.rtc2.internal.AudioRoutingController$ControllerErrorState 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现了重复的类 io.agora.rtc2.internal.AudioRoutingController$ControllerStartState 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复的类 io.agora.rtc2.internal.AudioRoutingController$ControllerState 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复的类 io.agora.rtc2.internal.AudioRoutingController$ControllerStopState 在 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 模块中发现了重复的类 io.agora.rtc2.video.AgoraImage 在 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 模块中发现重复的类 io.agora.rtc2.video.AgoraVideoFrame 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复的类 io.agora.rtc2.video.CameraCapturerConfiguration 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复类 io.agora.rtc2.video.CameraCapturerConfiguration$CAMERA_DIRECTION 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复的类 io.agora.rtc2.video.ChannelMediaInfo 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现了重复的类 io.agora.rtc2.video.ChannelMediaRelayConfiguration 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复类 io.agora.rtc2.video.EncodedVideoFrameInfo 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复的类 io.agora.rtc2.video.IVideoFrameObserver 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复类 io.agora.rtc2.video.VideoCanvas 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复的类 io.agora.rtc2.video.VideoCapture 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复类 io.agora.rtc2.videoCapture$AndroidFillLightMode 在 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-fu 模块中找到重复类 io.agora.rtc2.video.VideoCapture$AndroidImageFormatll-sdk-4.2.2-运行时 (io.agora.rtc:full-sdk:4.2.2) 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复类 io.agora.rtc2.videoCapture$AndroidMeteringMode 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复类 io.agora.rtc2.video.VideoCapture$AndroidVideoCaptureError 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中发现重复类 io.agora.rtc2.video.VideoCapture$AndroidVideoCaptureFrameDropReason 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复类 io.agora.rtc2.video.VideoCapture$FramerateRange 在模块 jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) 和 jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2) 中找到重复类 io.agora.rtc2.videoCapture$VideoCaptureApi

 Duplicate class io.agora.rtc2.video.VideoCaptureFactory$ChromiumCameraInfo found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureFormat found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureFormatParser found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureScreen found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureScreen$1 found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureScreen$2 found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCaptureScreen$3 found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCompositingLayout found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCompositingLayout$Builder found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCompositingLayout$Canvas found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoCompositingLayout$Region found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration$DEGRADATION_PREFERENCE found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration$FRAME_RATE found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration$MIRROR_MODE_TYPE found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration$ORIENTATION_MODE found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.rtc2.video.VideoEncoderConfiguration$VideoDimensions found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.utils.SqliteWrapper found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)
 Duplicate class io.agora.utils.SqliteWrapper$StorageItem found in modules jetified-agoraplayer-1.2.4-runtime (io.agora:agoraplayer:1.2.4) and jetified-full-sdk-4.2.2-runtime (io.agora.rtc:full-sdk:4.2.2)

 Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
  • 尝试:

使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获取更多日志输出。 使用 --scan 运行以获取完整的见解。 ==============================================================================

2:任务失败,出现异常。

  • 出了什么问题: 任务“:app:compileStageDebugKotlin”执行失败。

执行 org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction 时发生故障 编译错误。有关更多详细信息,请参阅日志

  • 尝试:

使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获取更多日志输出。 使用 --scan 运行以获取完整的见解。 ==============================================================================

构建在 17 分 1 秒内失败 异常:Gradle 任务 assembleStageDebug 失败,退出代码为 1

Android Flutter android-gradle-plugin agora.io Agora

评论


答: 暂无答案