mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Update README.md
This commit is contained in:
parent
fa83b2fa5e
commit
e33f5a514c
20
README.md
20
README.md
@ -55,6 +55,22 @@ accompanying demo application. To get started:
|
|||||||
|
|
||||||
## Using Gradle ##
|
## Using Gradle ##
|
||||||
|
|
||||||
ExoPlayer can also be built using Gradle. For a complete list of tasks, run:
|
ExoPlayer can also be built using Gradle. You can include it as a dependent project and build from source. e.g.
|
||||||
|
|
||||||
./gradlew tasks
|
```
|
||||||
|
// setting.gradle
|
||||||
|
include ':app', ':..:ExoPlayer:library'
|
||||||
|
|
||||||
|
// app/build.gradle
|
||||||
|
dependencies {
|
||||||
|
compile project(':..:ExoPlayer:library')
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to use ExoPlayer as a jar, run:
|
||||||
|
|
||||||
|
```
|
||||||
|
./gradlew jarRelease
|
||||||
|
```
|
||||||
|
|
||||||
|
and copy library.jar to the libs-folder of your new project.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user