title: Cannot resolve method maps
body: <p>I am using android studio and trying to bring in google maps. In my android manifest I have added these lines:</p>
  
  <pre><code>&lt;uses-library android:name="com.google.android.maps" /&gt;/&gt;
  &lt;meta-data
      android:name="com.google.android.gms.version"
      android:value="@integer/google_play_services_version" /&gt;
  &lt;meta-data
      android:name="com.google.android.maps.v2.API_KEY"
      android:value="myKEY" /&gt;
  </code></pre>
  
  <p>And when I try and create a map in my xml I get the error:</p>
  
  <pre><code>Cannot resolve method maps
  </code></pre>
  
  <p>My xml I created looks like this:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity" &gt;
  
      &lt;fragment
          android:id="@+id/map"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          class="com.google.android.gms.maps.MapFragment" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The cannot resolve method maps is on this line:</p>
  
  <pre><code>        class="com.google.android.gms.maps.MapFragment" /&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>package com.beerportfolio.beerportfoliopro;
  
  import android.content.SharedPreferences;
  import android.os.Bundle;
  import android.preference.PreferenceManager;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.SearchView;
  
  /**
   * Created by Mike on 3/17/14.
   */
  public class BreweryMap extends Fragment {
  
      public BreweryMap(){}
  
      String beerId = "";
      SearchView searchView;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
  
          View rootView = inflater.inflate(R.layout.activity_brewmap, container, false);
          setHasOptionsMenu(true);
  
  
  
  
  
  
          return rootView;
      }
  
  
  
  
  
  
  }
  </code></pre>