From 300f28335ff236cab4fe80282c788408a368726f Mon Sep 17 00:00:00 2001 From: Marius Reimer Date: Tue, 26 Feb 2019 11:21:28 +0100 Subject: [PATCH] Adding compileOptions Java 1.8 to build.gradle --- android-exoplayer/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android-exoplayer/build.gradle b/android-exoplayer/build.gradle index d7914b47..717d04ad 100644 --- a/android-exoplayer/build.gradle +++ b/android-exoplayer/build.gradle @@ -7,6 +7,11 @@ def safeExtGet(prop, fallback) { android { compileSdkVersion safeExtGet('compileSdkVersion', 27) buildToolsVersion safeExtGet('buildToolsVersion', '27.0.3') + + compileOptions { + targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_1_8 + } defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) @@ -32,4 +37,4 @@ dependencies { } implementation 'com.squareup.okhttp3:okhttp:3.12.1' -} \ No newline at end of file +}