title: Android Studio with gradle and Google Maps v2
body: <p>I'm really stuck here. So, I follow this <a href="http://android.rzeszow.net/?p=79">tutorial</a> step by step: but it still doesn't work.</p>
  
  <p>I've done all steps from tutorial and find out what new module(GooglePlayServices) not in modules, if open <code>run-&gt;edit</code> configurations in <code>general-&gt;module</code> i don't see <code>GooglePlayServices</code>, I suppose this is the problem, but I can't find what I have to do to fix it.</p>
  
  <p>Day early I tried same, but in this case (I actually don't remember what I did) <code>GooglePlayServices</code> in modules and I don't have anymore problem with <code>cannot resolve symbol 'maps'</code>, but it still doesn't work, fires error <code>Error inflating class fragment</code></p>
  
  <p>my activity extends <code>FragmentActivity</code></p>
  
  <pre><code>import android.os.Bundle;
  import android.support.v4.app.FragmentActivity;
  
  public class MainActivity extends FragmentActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
      }
  
  }
  </code></pre>
  
  <p>in both case <code>build.gradle</code> just like in tutorial:</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.4'
      }
  }
  apply plugin: 'android'
  
  dependencies {
      compile files('libs/android-support-v4.jar')
      compile project(':GooglePlayServices')
  }
  
  android {
      compileSdkVersion 17
      buildToolsVersion "17.0.0"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 17
      }
  }
  </code></pre>
  
  <p>and <code>settings.gradle</code>:</p>
  
  <pre><code>include ':Roadatus', ':GooglePlayServices'
  </code></pre>
  
  <p>main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/map"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:name="com.google.android.gms.maps.SupportMapFragment"/&gt;
  </code></pre>