From 149289b5dc9edbd8edf4062af053df14556a0ef7 Mon Sep 17 00:00:00 2001 From: Bartosz Przybylski Date: Wed, 2 Dec 2015 21:18:58 +0100 Subject: [PATCH] Force ant and android studio to use Java7 --- build.gradle | 11 +++++++---- project.properties | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index d96997a691..6d48b7b184 100644 --- a/build.gradle +++ b/build.gradle @@ -53,10 +53,13 @@ android { release.setRoot('build-types/release') } - android { - lintOptions { - abortOnError false - } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } + + lintOptions { + abortOnError false } productFlavors { diff --git a/project.properties b/project.properties index b7cabddb8a..4f0c145ae4 100644 --- a/project.properties +++ b/project.properties @@ -11,3 +11,5 @@ target=android-22 android.library.reference.1=owncloud-android-library android.library.reference.2=libs/android-support-appcompat-v7-exploded-aar +java.source=7 +java.target=7