方法一:
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;