title: React native build fail react-native-fbsdk
body: <p>Trying to build react-native android app but following error</p>
  
  <blockquote>
    <p>info Running jetifier to migrate libraries to AndroidX. You can
    disable it using "--no-jetifier" flag. Jetifier found 1108 file(s) to
    forward-jetify. Using 12 workers... info JS server already running.
    info Installing the app...</p>
    
    <blockquote>
      <p>Task :react-native-fbsdk:compileDebugJavaWithJavac FAILED</p>
    </blockquote>
    
    <p>Deprecated Gradle features were used in this build, making it
    incompatible with Gradle 6.0. Use '--warning-mode all' to show the
    individual deprecation warnings. See
    <a href="https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings" rel="nofollow noreferrer">https://docs.gradle.org/5.5/userguide/command_line_interface.html#sec:command_line_warnings</a>
    26 actionable tasks: 2 executed, 24 up-to-date</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: Execution failed for task ':react-native-fbsdk:compileDebugJavaWithJavac'.</p>
    
    <blockquote>
      <p>Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_231 contains a valid JDK installation.</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. Run with --scan to get full insights.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 4s</p>
    
    <p>error Failed to install the app. Make sure you have the Android
    development environment set up:
    <a href="https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment" rel="nofollow noreferrer">https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment</a>.
    Run CLI with --verbose flag for more details. Error: Command failed:
    gradlew.bat app:installDebug -PreactNativeDevServerPort=8081</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: Execution failed for task ':react-native-fbsdk:compileDebugJavaWithJavac'.</p>
    
    <blockquote>
      <p>Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_231 contains a valid JDK installation.</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. Run with --scan to get full insights.</p></li>
    <li><p>Get more help at <a href="https://help.gradle.org" rel="nofollow noreferrer">https://help.gradle.org</a></p></li>
    </ul>
    
    <p>BUILD FAILED in 4s</p>
  
  <pre><code>at checkExecSyncError (child_process.js:603:11)
  at execFileSync (child_process.js:621:13)
  at runOnAllDevices (G:\work\upveda\app\2019\rn_subhakamana\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
  at buildAndRun (G:\work\upveda\app\2019\rn_subhakamana\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
  at then.result (G:\work\upveda\app\2019\rn_subhakamana\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12)
  at process._tickCallback (internal/process/next_tick.js:68:7) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! Subhakamana@0.0.1
  </code></pre>
    
    <p>android: <code>react-native run-android</code> npm ERR! Exit status 1 npm ERR!
    npm ERR! Failed at the Subhakamana@0.0.1 android script. npm ERR! This
    is probably not a problem with npm. There is likely additional logging
    output above.</p>
    
    <p>npm ERR! A complete log of this run can be found in: npm ERR!<br>
    C:\Users\sheye\AppData\Roaming\npm-cache_logs\2019-12-19T11_54_40_308Z-debug.log</p>
  </blockquote>