【问题标题】:assets audio player library does not match classes资产音频播放器库与类不匹配
【发布时间】:2021-09-23 11:17:50
【问题描述】:

当时我在构建项目时遇到这样的错误

FAILURE:构建失败并出现异常。

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

执行 com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable 时发生故障 在模块 jetified-exoplayer-common-2.14.1-runtime (com.google.android.exoplayer:exoplayer-common:2.14.1) 和 jetified-exoplayer 中发现重复的类 com.google.android.exoplayer2.ui.package-info -ui-2.13.2-runtime (com.google.android.exoplayer:exoplayer-ui:2.13.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 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

在 3m 31s 内构建失败

【问题讨论】:

    标签: android flutter dart gradle


    【解决方案1】:

    在/../android/app/build.gradle 中添加以下行:

    dependencies {
        ...
        implementation('com.google.android.exoplayer:exoplayer:2.14.1')
    } 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-18
      • 1970-01-01
      • 2011-03-18
      • 1970-01-01
      • 1970-01-01
      • 2019-05-26
      • 1970-01-01
      相关资源
      最近更新 更多