title: React-native build error Android - java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
body: <p>I have setup the react native project as mentioned in react-native documentation (<a href="https://facebook.github.io/react-native/docs/getting-started.html" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/getting-started.html</a>). On building using the command <code>react-native run-android</code>, I am getting the following error.</p>
  
  <blockquote>
    <p>Starting JS server... Building and installing the app on the device
    (cd android &amp;&amp; ./gradlew installDebug)...</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>Where: Build file '/var/www/html/react-native/NewProject/android/app/build.gradle' line:
    1</p></li>
    <li><p>What went wrong: A problem occurred evaluating project ':app'.</p>
    
    <blockquote>
      <p>java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version
      52.0</p>
    </blockquote></li>
    <li><p>Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
    </ul>
    
    <p>BUILD FAILED</p>
  </blockquote>
  
  <p>Development Environment</p>
  
  <ul>
  <li>Linux</li>
  <li>Android SDK </li>
  <li>java version is <code>java version "1.8.0_121"</code></li>
  </ul>
  
  <p>Android SDK
  <a href="https://i.stack.imgur.com/1E1nz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1E1nz.png" alt="android sdk"></a></p>
  
  <p>Android SDK Build Tools installed 23.0.1, 23.0.2</p>
  
  <p>Could you please someone help me</p>