办法一:
app 上面的
build.gradle 中,
dependencies {implementation 'com.google.android.exoplayer:exoplayer:' + project.ext.exoPlayerVersion}
办法 2:
1,google 写的
'core_settings.gradle'
真棒
settings.gradle 中,
gradle.ext.exoplayerRoot = '/Users/jzd/Movies/ExoPlayer'
gradle.ext.exoplayerModulePrefix = 'exoplayer-'
apply from: new File(gradle.ext.exoplayerRoot, 'core_settings.gradle')
2,build.gradle 中
dependencies {implementation project(':exoplayer-library-extractor')
implementation project(path: ':exoplayer-extension-flac')
}
第 3 步:建设依赖关系
第 4 步,利用
import com.google.android.exoplayer2.extractor.flac.*;
FlacExtractor flac;