title: Cant Build Apk from react native in ubutnu
body: <p>I want to build an apk from my react native project</p>
  
  <p>I enter my project folder and eject it and do all things explained in the react native site, like keystore and such...</p>
  
  <p>But when I want to build my project it says:</p>
  
  <blockquote>
    <p>FAILURE: Build failed with an exception.</p>
    
    <ul>
    <li><p>What went wrong: A problem occurred configuring root project 'TicaToe'.  </p>
    
    <blockquote>
      <p>Could not resolve all files for configuration ':classpath'.<br>
      Could not find com.android.tools.build:gradle:4.4.<br>
       Searched in the following locations:<br>
           <a href="https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom</a><br>
           <a href="https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.jar" rel="nofollow noreferrer">https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.jar</a><br>
           <a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.4/gradle-4.4.pom" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.4/gradle-4.4.pom</a><br>
           <a href="https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.4/gradle-4.4.jar" rel="nofollow noreferrer">https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.4/gradle-4.4.jar</a><br>
       Required by:<br>
           project :</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>
  </blockquote>
  
  <p>Another thing is when I run the android command, it says:</p>
  
  <pre class="lang-none prettyprint-override"><code>*************************************************************************
  The "android" command is deprecated.
  For manual SDK, AVD, and project management, please use Android Studio.
  For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
  *************************************************************************
  Invalid or unsupported command ""
  
  Supported commands are:
  android list target
  android list avd
  android list device
  android create avd
  android move avd
  android delete avd
  android list sdk
  android update sdk
  
  Warning: java.io.FileNotFoundException: https://dl.google.com/android/repository/repository2-1.xml
  Warning: Failed to download any source lists!                                   
  [=======================================] 100% Computing updates...
  </code></pre>