title: Add module to React Native - error: cannot find symbol
body: <p>I want to add a simple module to my React Native app. But I have an errors:</p>
  
  <pre><code>:app:compileDebugJavaWithJavacE:\project\android\app\src\main\java\com\androiddepends\HelloWorld.java:23: error: cannot find symbol
      Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
      ^
    symbol:   class Intent
    location: class HelloWorld
  E:\project\android\app\src\main\java\com\androiddepends\HelloWorld.java:23: error: cannot find symbol
      Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
                          ^
    symbol:   class Intent
    location: class HelloWorld
  E:\project\android\app\src\main\java\com\androiddepends\HelloWorld.java:23: error: cannot find symbol
      Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
                                 ^
    symbol:   variable Intent
    location: class HelloWorld
  E:\project\android\app\src\main\java\com\androiddepends\HelloWorld.java:24: error: cannot find symbol
      if (intent.resolveActivity(getPackageManager()) != null) {
                                 ^
    symbol:   method getPackageManager()
    location: class HelloWorld
  4 errors
   FAILED
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>package com.androiddepends;
  
  import com.facebook.react.bridge.NativeModule;
  import com.facebook.react.bridge.ReactApplicationContext;
  import com.facebook.react.bridge.ReactContext;
  import com.facebook.react.bridge.ReactContextBaseJavaModule;
  import com.facebook.react.bridge.ReactMethod;
  import android.util.Log;
  
  public class HelloWorld extends ReactContextBaseJavaModule {
  
      public HelloWorld(ReactApplicationContext reactContext) {
          super(reactContext);
      }
  
      @Override
      public String getName() {
          return "HelloWorld";
      } 
  
      @ReactMethod
      public void openWifiSettings() {
      Intent intent = new Intent(Intent.ACTION_WIFI_SETTINGS);
      if (intent.resolveActivity(getPackageManager()) != null) {
          startActivity(intent);
      }
  }
  }
  </code></pre>
  
  <p>Any ideas?</p>