title: Gradle version issue (Unsupported major.minor version 52.0) on Ubuntu 16.04 with Android studio 2.2.2
body: <p>Hello to all who are interesting in the issue,</p>
  
  <p>I feel confused about gradle version in Android studio.  </p>
  
  <p>I am using the Android Studio 2.2.2. In the project build.gradle. I have <code>classpath 'com.android.tools.build:gradle:2.2.2</code> which makes me believing the Android studio is using gradle 2.2.2.</p>
  
  <p>In the gradle-wrapper.properties, It has <code>https\://services.gradle.org/distributions/gradle-2.14.1-all.zip</code>. So it means the gradlew build scripts requires 2.14.</p>
  
  <p>When I tried to list tasks in the project, I used the terminal <code>gradle tasks</code>, I had following error:</p>
  
  <p><code>java.lang.UnsupportedClassVersionError: com/android/build/gradle/LibraryPlugin : Unsupported major.minor version 52.0</code>  </p>
  
  <p>And when I run <code>gradlew -v</code> I found the gradle version is 2.10. It could be me, I manually install the gradle by using <code>apt-get install gradle</code>. The default version might be 2.10.</p>
  
  <p>My question is, which version gradle the android studio is using and how can I update the gradle to 'correct' version so I could list the tasks in the android project?</p>
  
  <p><strong>Edit 1:</strong><br>
  I tried to <a href="https://askubuntu.com/questions/328178/gradle-in-ubuntu-for-launchpad/328181">update gradle to 2.14</a>. By using <code>
  sudo apt-cache search gradle
  sudo add-apt-repository ppa:cwchien/gradle
  sudo apt-get update
  sudo apt-get install gradle-2.14
  </code>  </p>
  
  <p>I also tried to upgrade the gradle to version 2.14.1, but still having the same error.<br>
  Thanks for your help  </p>
  
  <p>Rong </p>
  
  <hr>
  
  <p><a href="https://stackoverflow.com/questions/35937875/unsupported-major-minor-version-52-0-when-rendering-in-android-studio">A solution of solving the version 52.0 issue</a>  One suggested solution (with the similar situation I am having) solved the problem by decrease the gradle version to 2.10, I really do not want to do that, since I wish to use the update-to-date version that android studio is using.   </p>
  
  <p>As to the solution solved that issue: I am already having the Android 6.0 API 23 installed in the Android studio. The Android SDK 6.0 does not fix the problem in my case.</p>
  
  <hr>
  
  <p>environment:
  Android studio 2.2.2<br>
  Java sdk: 1.7<br>
  OS: Ubuntu 16.04 LTS</p>