title: Android studio v0.3.2, gradle, google maps v2.0 Didn't find class "com.google.android.gms.maps.MapFragment
body: <p>I have problem with Google Maps Android v2.0. Because i try a lot of options and I always get this stacktrace:</p>
  
  <pre><code> 1-03 17:39:26.015    2398-2398/com.** E/AndroidRuntime﹕ FATAL EXCEPTION: main
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.**/com.**
  .MainActivity}: android.view.InflateException: Binary XML file line #24: Error inflating class fragment
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
              at android.app.ActivityThread.access$600(ActivityThread.java:141)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:5041)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
              at dalvik.system.NativeStart.main(Native Method)
       Caused by: android.view.InflateException: Binary XML file line #24: Error inflating class fragment
              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
              at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
              at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
              at android.app.Activity.setContentView(Activity.java:1881)
              at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:208)
              at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:111)
              at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)
              at com.**.MainActivity.onCreate(MainActivity.java:43)
              at android.app.Activity.performCreate(Activity.java:5104)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
              at android.app.ActivityThread.access$600(ActivityThread.java:141)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:5041)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
              at dalvik.system.NativeStart.main(Native Method)
       Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.MapFragment: make sure class name exists, is public, and has an empty constructor that is public
              at android.support.v4.app.Fragment.instantiate(Fragment.java:409)
              at android.support.v4.app.Fragment.instantiate(Fragment.java:377)
              at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:277)
              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
              at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
              at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
              at android.app.Activity.setContentView(Activity.java:1881)
              at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:208)
              at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:111)
              at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)
              at com.**.MainActivity.onCreate(MainActivity.java:43)
              at android.app.Activity.performCreate(Activity.java:5104)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
              at android.app.ActivityThread.access$600(ActivityThread.java:141)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:5041)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
              at dalvik.system.NativeStart.main(Native Method)
       Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.maps.MapFragment" on path: /data/app/com.**-2.apk
              at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
              at android.support.v4.app.Fragment.instantiate(Fragment.java:399)
              at android.support.v4.app.Fragment.instantiate(Fragment.java:377)
              at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:277)
              at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
              at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
              at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
              at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
              at android.app.Activity.setContentView(Activity.java:1881)
              at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:208)
              at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:111)
              at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)
              at com.**.MainActivity.onCreate(MainActivity.java:43)
              at android.app.Activity.performCreate(Activity.java:5104)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
              at android.app.ActivityThread.access$600(ActivityThread.java:141)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:5041)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>My build.grade:</p>
  
  <pre><code>    buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:0.6.+'
      }
  }
  apply plugin: 'android'
  
  repositories {
      mavenCentral()
  }
  
  android {
      compileSdkVersion 19
      buildToolsVersion "19"
  
      defaultConfig {
          minSdkVersion 8
          targetSdkVersion 19
      }
  }
  
  dependencies {
      compile 'com.google.android.gms:play-services:3.1.36'
  //    compile 'com.google.android.gms:play-services:+' //3.2.25
      compile 'com.android.support:support-v4:19.0.+'
      compile 'com.android.support:appcompat-v7:19.0.+'
  }
  </code></pre>
  
  <p>My manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="9"
      android:targetSdkVersion="18" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;meta-data
          android:name="com.google.android.maps.v2.API_KEY"
          android:value="*****"/&gt;
      &lt;activity
          android:name="com.*.NonLoggedActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:label="@string/app_name"
          android:theme="@style/FullscreenTheme" &gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="com.*.LoginActivity"
          android:label="@string/title_activity_login"
          android:windowSoftInputMode="adjustResize|stateVisible" &gt;
  
      &lt;/activity&gt;
      &lt;activity
          android:name="com.*.MainActivity"
          android:label="@string/title_activity_main" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt;
  &lt;!-- The following two permissions are not required to use
       Google Maps Android API v2, but are recommended. --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
  
  &lt;permission
      android:name="com.*.permission.MAPS_RECEIVE"
      android:protectionLevel="signature" /&gt;
  &lt;uses-permission android:name="com.*.permission.MAPS_RECEIVE" /&gt;
  
  &lt;uses-feature
      android:glEsVersion="0x00020000"
      android:required="true"/&gt;
  &lt;uses-library
      android:name="com.google.android.maps"
      android:required="false" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>In activity_main.xml:</p>
  
  <pre><code>    &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.MapFragment"/&gt;
  </code></pre>
  
  <p>Sdk manager:
  <img src="https://i.stack.imgur.com/E422H.png" alt="enter image description here"></p>
  
  <p>And Project structure:
  <img src="https://i.stack.imgur.com/3l3Zf.png" alt="enter image description here"></p>
  
  <p>Any idea what is wrong? </p>