title: Could not get unknown property 'javaVersion' for object of type com.android.build.gradle.internal.CompileOptions
body: <p>i am getting this error when i run my project.
  i am getting error in these two lines
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility javaVersion.VERSION_1_8
  and i am changing these lines into 
  sourceCompatibility JavaVersion.VERSION_1_2
          targetCompatibility javaVersion.VERSION_1_2
  but facing same error.
  i have android studio 2.2.3
  this is my Gradle file.</p>
  
  <pre><code>apply plugin: 'com.android.application'
  android {
  compileSdkVersion 25
  buildToolsVersion '25.0.0'
  defaultConfig {
      applicationId "com.fcih.gp.furniturego"
      minSdkVersion 17
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
      testInstrumentationRunner 
  "android.support.test.runner.AndroidJUnitRunner"
      vectorDrawables.useSupportLibrary true
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 
  'proguard-rules.pro'
          debuggable true
      }
  }
  
  compileOptions{
      sourceCompatibility JavaVersion.VERSION_1_2
      targetCompatibility javaVersion.VERSION_1_2
  }
  //    compileOptions {
  //        sourceCompatibility JavaVersion.VERSION_1_8
  //        targetCompatibility JavaVersion.VERSION_1_8
  //    }
  }
  dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  compile(name: 'wikitudesdk', ext: 'aar')
  androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', 
  {
      exclude group: 'com.android.support', module: 'support-annotations'
  })
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:design:25.4.0'
  compile 'com.android.support:exifinterface:25.4.0'
  compile 'com.android.support:appcompat-v7:25.4.0'
  compile 'com.android.support:customtabs:25.4.0'
  compile 'com.android.support:support-v4:25.4.0'
  compile 'com.android.support:recyclerview-v7:25.4.0'
  compile 'com.android.support:cardview-v7:25.4.0'
  compile 'com.google.firebase:firebase-database:11.0.1'
  compile 'com.google.firebase:firebase-auth:11.0.1'
  compile 'com.google.firebase:firebase-storage:11.0.1'
  compile 'com.firebaseui:firebase-ui-database:2.0.1'
  compile 'com.google.android.gms:play-services-auth:11.0.1'
  compile 'com.facebook.android:facebook-android-sdk:4.23.0'
  compile 'com.twitter.sdk.android:twitter:3.0.0'
  compile 'com.squareup.picasso:picasso:2.5.2'
  compile 'com.makeramen:roundedimageview:2.3.0'
  compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
  compile 'me.grantland:autofittextview:0.2.1'
  compile 'com.theartofdev.edmodo:android-image-cropper:2.4.6'
  compile 'com.koushikdutta.ion:ion:2.2.1'
  }
  
  repositories {
  jcenter()
  flatDir { dirs 'libs' }
  }
  apply plugin: 'com.google.gms.google-services'
  </code></pre>