mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Clarify Java 8 gradle requirement in developer guide.
Issue:#5026 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=219454985
This commit is contained in:
parent
5f6c907c65
commit
58f50ca655
13
README.md
13
README.md
@ -45,10 +45,15 @@ following will add a dependency to the full library:
|
|||||||
implementation 'com.google.android.exoplayer:exoplayer:2.X.X'
|
implementation 'com.google.android.exoplayer:exoplayer:2.X.X'
|
||||||
```
|
```
|
||||||
|
|
||||||
where `2.X.X` is your preferred version. Alternatively, you can depend on only
|
where `2.X.X` is your preferred version. If not enabled already, you also need
|
||||||
the library modules that you actually need. For example the following will add
|
to turn on Java 8 support in all `build.gradle` files depending on ExoPlayer, by
|
||||||
dependencies on the Core, DASH and UI library modules, as might be required for
|
adding `compileOptions { targetCompatibility JavaVersion.VERSION_1_8 }` to the
|
||||||
an app that plays DASH content:
|
`android` section.
|
||||||
|
|
||||||
|
As an alternative to the full library, you can depend on only the library
|
||||||
|
modules that you actually need. For example the following will add dependencies
|
||||||
|
on the Core, DASH and UI library modules, as might be required for an app that
|
||||||
|
plays DASH content:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
implementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'
|
implementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user