From 58f50ca6555eb60e87e84e717a3c49e0cee17703 Mon Sep 17 00:00:00 2001 From: tonihei Date: Wed, 31 Oct 2018 04:59:04 -0700 Subject: [PATCH] Clarify Java 8 gradle requirement in developer guide. Issue:#5026 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=219454985 --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b69be03ae4..2b6a508aaa 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,15 @@ following will add a dependency to the full library: implementation 'com.google.android.exoplayer:exoplayer:2.X.X' ``` -where `2.X.X` is your preferred version. Alternatively, 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: +where `2.X.X` is your preferred version. If not enabled already, you also need +to turn on Java 8 support in all `build.gradle` files depending on ExoPlayer, by +adding `compileOptions { targetCompatibility JavaVersion.VERSION_1_8 }` to the +`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 implementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'