无法访问com.google.android.exoplayer2.Player.EventListener?

无法访问com.google.android.exoplayer2.Player.EventListener?,android,android-studio,androidx,exoplayer,exoplayer2.x,Android,Android Studio,Androidx,Exoplayer,Exoplayer2.x,我已将我的项目迁移到androidx中,我无法构建该项目,因为我在exoplayer中遇到错误。我在项目中使用exoplayer,在获取实例时遇到问题 my build.gradle implementation 'com.google.android.exoplayer:exoplayer:2.7.3' // Rx dependencies api 'io.reactivex.rxjava2:rxjava:2.2.6' api 'io.reactiv

我已将我的项目迁移到androidx中,我无法构建该项目,因为我在exoplayer中遇到错误。我在项目中使用exoplayer,在获取实例时遇到问题

 my build.gradle
  implementation 'com.google.android.exoplayer:exoplayer:2.7.3'

//  Rx dependencies

        api 'io.reactivex.rxjava2:rxjava:2.2.6'
        api 'io.reactivex.rxjava2:rxandroid:2.1.1' 
我在上遇到类似“无法访问com.google.android.exoplayer2.Player.EventListener”的错误


在旧版本的ExoPlayer中,ExoPlayer的一些依赖项依赖于(旧的)支持库,而这些支持库与(新的)androidx库不能很好地混合。也许它在较新版本(ExoPlayer 2.10.*)中通过ExoPlayer进行了本地修复,因此您可以尝试迁移到较新版本的ExoPlayer。
 Playlist playlist = ExoPlayerManager.getInstance().getCurrentPlaylist();