title: method does not override or implement a method from a supertype (:app:compileDebugJavaWithJavac)
body: <p>I am getting the following error While running command react-native run-android. What could be the problem?</p>
  
  <blockquote>
    <p>:app:compileDebugJavaWithJavacC:\Users\Deeksha
    Gupta\git\pe-gold-native\android\app\src\main\java\com\pegoldnative\MainActivity.java:39:
    error: method does not override or implement a method from a supertype
    @Override ^ 1 error FAILED
         FAILURE: Build failed with an exception. Execution failed for task ':app:compileDebugJavaWithJavac'</p>
  </blockquote>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>  package com.pegoldnative;
  
    import com.facebook.react.ReactActivity;
    import com.horcrux.svg.RNSvgPackage;
    import io.realm.react.RealmReactPackage;
    import com.brentvatne.react.ReactVideoPackage;
    import com.facebook.react.ReactPackage;
    import com.facebook.react.shell.MainReactPackage;
  
    import java.util.Arrays;
    import java.util.List;
    import com.oblador.vectoricons.VectorIconsPackage;
    import com.mihir.react.tts.*;
    import com.rnfs.RNFSPackage;
    public class MainActivity extends ReactActivity {
  
  /**
   * Returns the name of the main component registered from JavaScript.
   * This is used to schedule rendering of the component.
   */
       @Override
       protected String getMainComponentName() {
          return "pegoldnative";
       }
  
  /**
   * Returns whether dev mode should be enabled.
   * This enables e.g. the dev menu.
   */
      @Override
      protected boolean getUseDeveloperSupport() {
           return BuildConfig.DEBUG;
      }
  
  /**
   * A list of packages used by the app. If the app uses additional views
   * or modules besides the default ones, add more packages here.
   */
      @Override
      protected List&lt;ReactPackage&gt; getPackages() {
           return Arrays.&lt;ReactPackage&gt;asList(
               new MainReactPackage(),
               new RNSvgPackage(),
               new RealmReactPackage(),
               new ReactVideoPackage()
               , new VectorIconsPackage()
              , new RCTTextToSpeechModule()
              , new RNFSPackage()
      );
    }
  }
  </code></pre>