Use Java 1.7 when compiling.
@@ -4,6 +4,11 @@ apply plugin: 'com.android.library'
android {
useLibrary 'org.apache.http.legacy'
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }
}
// Check if the android plugin version supports unit testing.
