【问题标题】:Androidx and exoplayerAndroidx 和 exoplayer
【发布时间】:2018-08-25 08:03:22
【问题描述】:

我尝试在 May 项目中添加 exoplayerAndroidX 并收到此错误。

错误

程序类型已存在: android.support.v4.media.MediaBrowserCompat$CustomActionCallback

Message{kind=ERROR, text=程序类型已存在: android.support.v4.media.MediaBrowserCompat$CustomActionCallback, sources=[未知源文件],工具名=Optional.of(D8)}

gradle.properties

android.useAndroidX=true
android.enableJetifier=true

build.gradle

dependencies {
//support library
implementation 'com.google.android.material:material:1.0.0-rc01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0-rc01'
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
implementation 'androidx.cardview:cardview:1.0.0-rc01'
implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
implementation 'androidx.recyclerview:recyclerview:1.0.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
//android architector componet
implementation "androidx.room:room-runtime:2.0.0-rc01"
kapt "androidx.room:room-compiler:2.0.0-rc01"
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0-rc01"

//exo player
implementation 'com.google.android.exoplayer:exoplayer:2.8.4'
....
}

【问题讨论】:

    标签: exoplayer androidx


    【解决方案1】:

    自 ExoPlayer 2.10.* 起“本机”支持 AndroidX(不使用 android.useAndroidX=true 和 android.enableJetifier=true)

    【讨论】:

      猜你喜欢
      • 2017-08-04
      • 2021-04-21
      • 2019-02-14
      • 2015-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-26
      • 1970-01-01
      相关资源
      最近更新 更多